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:
parent
9f9ab188e1
commit
8e31f44249
@ -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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user