diff options
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; }; |