diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-01-03 00:09:09 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-01-16 07:48:20 +0100 |
commit | 545071e998806235442edda5f575ee61e836abe9 (patch) | |
tree | 45579d717361f24c6f4a06354f5836447e691771 /compat | |
parent | 4766be01022d6de50f7b42647299860c2d9909b8 (diff) |
cruft
Diffstat (limited to 'compat')
-rw-r--r-- | compat/mutex.cpp | 10 | ||||
-rw-r--r-- | compat/mutex.hpp | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/compat/mutex.cpp b/compat/mutex.cpp index 55789a22..664677ea 100644 --- a/compat/mutex.cpp +++ b/compat/mutex.cpp @@ -17,17 +17,17 @@ mutex::mutex(RecursionMode m) : inner{m} { } -QMutex* mutex::operator&() const +QMutex* mutex::operator&() const noexcept { - return *this; + return &inner; } -mutex::operator QMutex*() const +mutex::operator QMutex*() const noexcept { return &inner; } -QMutex* mutex::operator->() const +QMutex* mutex::operator->() const noexcept { - return *this; + return &inner; } diff --git a/compat/mutex.hpp b/compat/mutex.hpp index 37e6802b..e142fd0b 100644 --- a/compat/mutex.hpp +++ b/compat/mutex.hpp @@ -17,7 +17,7 @@ public: mutex(const mutex& datum); explicit mutex(RecursionMode m); - QMutex* operator&() const; - operator QMutex*() const; - QMutex* operator->() const; + QMutex* operator&() const noexcept; + explicit operator QMutex*() const noexcept; + QMutex* operator->() const noexcept; }; |