From 8e31f44249c1abcbf445941ccc95ac1086fe21ee Mon Sep 17 00:00:00 2001 From: prefect Date: Mon, 26 Sep 2005 23:37:37 +0000 Subject: [PATCH] This is what the explicit "this->" before accesses of members of a template base class needs to look like. More will surely follow. This was SVN commit r2772. --- source/ps/Parser.h | 2 +- source/scripting/SynchedJSObject.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/ps/Parser.h b/source/ps/Parser.h index 2bd0526ce7..a0f363e265 100755 --- a/source/ps/Parser.h +++ b/source/ps/Parser.h @@ -237,7 +237,7 @@ private: typedef typename std::map::iterator iterator; ~SDMap() { - for (iterator it = begin(); it != end(); ++it) delete it->second; + for (iterator it = this->begin(); it != this->end(); ++it) delete it->second; } }; diff --git a/source/scripting/SynchedJSObject.h b/source/scripting/SynchedJSObject.h index a795030a30..2727a6ddbf 100644 --- a/source/scripting/SynchedJSObject.h +++ b/source/scripting/SynchedJSObject.h @@ -142,8 +142,8 @@ protected: template void AddSynchedProperty(CStrW name, T *native, UpdateFn update=NULL) { ISynchedJSProperty *prop=new CSynchedJSProperty(name, native, this, update); - m_NonsharedProperties[name]=prop; - m_SynchedProperties[name]=prop; + this->m_NonsharedProperties[name]=prop; + this->m_SynchedProperties[name]=prop; } };