mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-01 13:33:32 +00:00
Merge pull request #313 from lioncash/bug
CToken: Amend incorrect return value of TToken's operator=
This commit is contained in:
commit
0a2d0bcfe9
@ -107,7 +107,7 @@ public:
|
|||||||
TToken(std::unique_ptr<T>&& obj) : CToken(GetIObjObjectFor(std::move(obj))) {}
|
TToken(std::unique_ptr<T>&& obj) : CToken(GetIObjObjectFor(std::move(obj))) {}
|
||||||
TToken& operator=(std::unique_ptr<T>&& obj) {
|
TToken& operator=(std::unique_ptr<T>&& obj) {
|
||||||
*this = CToken(GetIObjObjectFor(std::move(obj)));
|
*this = CToken(GetIObjObjectFor(std::move(obj)));
|
||||||
return this;
|
return *this;
|
||||||
}
|
}
|
||||||
virtual void Unlock() { CToken::Unlock(); }
|
virtual void Unlock() { CToken::Unlock(); }
|
||||||
virtual void Lock() { CToken::Lock(); }
|
virtual void Lock() { CToken::Lock(); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user