From 545071e998806235442edda5f575ee61e836abe9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 3 Jan 2019 00:09:09 +0100 Subject: cruft --- compat/mutex.cpp | 10 +++++----- compat/mutex.hpp | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'compat') 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; }; -- cgit v1.2.3