From ea036f6f9fc40877515965a009a83f1c2c0cf73a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 26 May 2016 13:28:14 +0200 Subject: compat/mutex: drop const when casting mutex Fixes const correctness in spline-widget --- opentrack-compat/qcopyable-mutex.hpp | 4 ++-- 1 file 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(&inner); } }; -- cgit v1.2.3