mirror of https://github.com/AxioDL/metaforce.git
CToken tweak
This commit is contained in:
parent
989843cacc
commit
de9a14dc1e
|
@ -247,10 +247,11 @@ class TLockedToken : public TToken<T>
|
||||||
{
|
{
|
||||||
T* m_obj;
|
T* m_obj;
|
||||||
public:
|
public:
|
||||||
TLockedToken() {m_obj = nullptr;}
|
TLockedToken() : m_obj(nullptr) {}
|
||||||
TLockedToken(const CToken& other) : TToken<T>(other) {m_obj = TToken<T>::GetObj();}
|
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();}
|
TLockedToken(CToken&& other) : TToken<T>(std::move(other)) {m_obj = TToken<T>::GetObj();}
|
||||||
T* GetObj() {return m_obj;}
|
T* GetObj() {return m_obj;}
|
||||||
|
T* operator->() {return m_obj;}
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue