CToken tweak

This commit is contained in:
Jack Andersen 2016-03-04 18:50:38 -10:00
parent 989843cacc
commit de9a14dc1e
1 changed files with 2 additions and 1 deletions

View File

@ -247,10 +247,11 @@ class TLockedToken : public TToken<T>
{
T* m_obj;
public:
TLockedToken() {m_obj = nullptr;}
TLockedToken() : m_obj(nullptr) {}
TLockedToken(const CToken& other) : TToken<T>(other) {m_obj = TToken<T>::GetObj();}
TLockedToken(CToken&& other) : TToken<T>(std::move(other)) {m_obj = TToken<T>::GetObj();}
T* GetObj() {return m_obj;}
T* operator->() {return m_obj;}
};
}