Skip to content

Commit

Permalink
Refactor method calls to fix MQL5 deprecated behavior warnings (#69)
Browse files Browse the repository at this point in the history
This commit refactors hidden method calls in `HashMap.mqh` to use explicit base class method invocation, addressing MQL5 compiler warnings about deprecated behavior that will be disallowed in future versions. The specific warnings being resolved are for hidden method calls that do not occur when compiling with MQL4, thus maintaining backward compatibility with MQL4 while ensuring future-proof compatibility with MQL5.

The changes are limited to method call semantics and do not alter any functional aspects of the code. By making these updates, the codebase stays compliant with both MQL4 and future MQL5 compiler standards.
  • Loading branch information
barmenteros authored Apr 18, 2024
1 parent cc80979 commit ec696fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Collection/HashMap.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ public:

int append(Key key,Value value)
{
int ni=append();
int ni=HashEntriesBase<Key>::append();
m_keys[ni]=key;
m_values[ni]=value;
return ni;
}

void unremove(int i,Key key,Value value)
{
unremove(i);
HashEntriesBase<Key>::unremove(i);
m_keys[i]=key;
m_values[i]=value;
}
Expand Down

0 comments on commit ec696fa

Please sign in to comment.