diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-24 11:30:35 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-27 16:42:58 +0200 |
commit | b15fe980671e028d0849e11878e0edf9a88669a5 (patch) | |
tree | 221cbd9964ff52e3ce85f1fda21d075d3f14b88d /compat/qcopyable-mutex.cpp | |
parent | 6d7679cf7c997237805022f828846164ff947a40 (diff) |
compat/mutex: rename
Diffstat (limited to 'compat/qcopyable-mutex.cpp')
-rw-r--r-- | compat/qcopyable-mutex.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/compat/qcopyable-mutex.cpp b/compat/qcopyable-mutex.cpp deleted file mode 100644 index 71720f17..00000000 --- a/compat/qcopyable-mutex.cpp +++ /dev/null @@ -1,36 +0,0 @@ -#include "qcopyable-mutex.hpp" - -mutex& mutex::operator=(const mutex& datum) -{ - inner = nullptr; - inner = std::make_unique<QMutex>(datum->isRecursive() - ? QMutex::Recursive - : QMutex::NonRecursive); - return *this; -} - -mutex::mutex(const mutex& datum) -{ - *this = datum; -} - -mutex::mutex(mutex::mode m) : - inner(std::make_unique<QMutex>(static_cast<QMutex::RecursionMode>(int(m)))) -{ -} - -QMutex* mutex::operator&() const -{ - return *this; -} - -QMutex* mutex::operator->() const -{ - return *this; -} - -mutex::operator QMutex*() const -{ - return const_cast<QMutex*>(inner.get()); -} - |