From ec696fafbea4e50ab5967ba3a12cb61bb8056419 Mon Sep 17 00:00:00 2001 From: barmenteros FX <34687898+barmenteros@users.noreply.github.com> Date: Thu, 18 Apr 2024 06:02:48 +0200 Subject: [PATCH] Refactor method calls to fix MQL5 deprecated behavior warnings (#69) 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. --- Collection/HashMap.mqh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Collection/HashMap.mqh b/Collection/HashMap.mqh index 91781ba..d9aa70e 100644 --- a/Collection/HashMap.mqh +++ b/Collection/HashMap.mqh @@ -63,7 +63,7 @@ public: int append(Key key,Value value) { - int ni=append(); + int ni=HashEntriesBase::append(); m_keys[ni]=key; m_values[ni]=value; return ni; @@ -71,7 +71,7 @@ public: void unremove(int i,Key key,Value value) { - unremove(i); + HashEntriesBase::unremove(i); m_keys[i]=key; m_values[i]=value; }