2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #1151 from lioncash/return

synchronized_wrapper: Add missing return in SynchronizedRef move assignment operator
This commit is contained in:
Yuri Kunde Schlesner 2015-09-11 23:23:33 -03:00
commit 042cc00150

View file

@ -55,6 +55,7 @@ public:
SynchronizedRef& operator=(SynchronizedRef&) = delete; SynchronizedRef& operator=(SynchronizedRef&) = delete;
SynchronizedRef& operator=(SynchronizedRef&& o) { SynchronizedRef& operator=(SynchronizedRef&& o) {
std::swap(wrapper, o.wrapper); std::swap(wrapper, o.wrapper);
return *this;
} }
T& operator*() { return wrapper->data; } T& operator*() { return wrapper->data; }