summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-05-26 13:28:14 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-05-26 13:28:14 +0200
commitea036f6f9fc40877515965a009a83f1c2c0cf73a (patch)
tree4d5b446af42c9e8f9129213e4e51109acae2ab3c
parent2ef88a343443774e24154d5757f3c17b515db2f5 (diff)
compat/mutex: drop const when casting mutex
Fixes const correctness in spline-widget
-rw-r--r--opentrack-compat/qcopyable-mutex.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/opentrack-compat/qcopyable-mutex.hpp b/opentrack-compat/qcopyable-mutex.hpp
index f7f36f93..57b0030d 100644
--- a/opentrack-compat/qcopyable-mutex.hpp
+++ b/opentrack-compat/qcopyable-mutex.hpp
@@ -30,8 +30,8 @@ public:
{
}
- QMutex* operator&()
+ QMutex* operator&() const
{
- return &inner;
+ return const_cast<QMutex*>(&inner);
}
};