1
0
forked from 0ad/0ad

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.
This commit is contained in:
prefect 2005-09-26 23:37:37 +00:00
parent 9f9ab188e1
commit 8e31f44249
2 changed files with 3 additions and 3 deletions

View File

@ -237,7 +237,7 @@ private:
typedef typename std::map<T,P>::iterator iterator; typedef typename std::map<T,P>::iterator iterator;
~SDMap() ~SDMap()
{ {
for (iterator it = begin(); it != end(); ++it) delete it->second; for (iterator it = this->begin(); it != this->end(); ++it) delete it->second;
} }
}; };

View File

@ -142,8 +142,8 @@ protected:
template <typename T> void AddSynchedProperty(CStrW name, T *native, UpdateFn update=NULL) template <typename T> void AddSynchedProperty(CStrW name, T *native, UpdateFn update=NULL)
{ {
ISynchedJSProperty *prop=new CSynchedJSProperty<T>(name, native, this, update); ISynchedJSProperty *prop=new CSynchedJSProperty<T>(name, native, this, update);
m_NonsharedProperties[name]=prop; this->m_NonsharedProperties[name]=prop;
m_SynchedProperties[name]=prop; this->m_SynchedProperties[name]=prop;
} }
}; };