2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 21:51:22 +00:00

CToken: Amend incorrect return value of TToken's operator=

This should be returning by reference, not the pointer of this.
This commit is contained in:
Lioncash 2020-04-17 17:16:31 -04:00
parent 0b05c906df
commit 8e5fc3668c

View File

@ -107,7 +107,7 @@ public:
TToken(std::unique_ptr<T>&& obj) : CToken(GetIObjObjectFor(std::move(obj))) {}
TToken& operator=(std::unique_ptr<T>&& obj) {
*this = CToken(GetIObjObjectFor(std::move(obj)));
return this;
return *this;
}
virtual void Unlock() { CToken::Unlock(); }
virtual void Lock() { CToken::Lock(); }