summaryrefslogtreecommitdiffhomepage
path: root/compat/mutex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'compat/mutex.cpp')
-rw-r--r--compat/mutex.cpp10
1 files changed, 5 insertions, 5 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;
}