mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-06-24 13:13:28 +00:00
CToken tweak
This commit is contained in:
parent
989843cacc
commit
de9a14dc1e
@ -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;}
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user