diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-26 13:28:14 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-26 13:28:14 +0200 |
commit | ea036f6f9fc40877515965a009a83f1c2c0cf73a (patch) | |
tree | 4d5b446af42c9e8f9129213e4e51109acae2ab3c /opentrack-compat/qcopyable-mutex.hpp | |
parent | 2ef88a343443774e24154d5757f3c17b515db2f5 (diff) |
compat/mutex: drop const when casting mutex
Fixes const correctness in spline-widget
Diffstat (limited to 'opentrack-compat/qcopyable-mutex.hpp')
-rw-r--r-- | opentrack-compat/qcopyable-mutex.hpp | 4 |
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); } }; |