diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-07-08 23:20:56 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-07-08 23:20:56 +0200 |
commit | 90940a774eab876c38d5cef981b4be5bae67a462 (patch) | |
tree | 2e60edc1719ffd53752a55a7f0444166965e90c5 /compat/copyable-mutex.hpp | |
parent | e3292e1ddaa8d69eb320d2700fc582b4675cf8ce (diff) |
modernize only
Diffstat (limited to 'compat/copyable-mutex.hpp')
-rw-r--r-- | compat/copyable-mutex.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compat/copyable-mutex.hpp b/compat/copyable-mutex.hpp index af82876d..46c6c88c 100644 --- a/compat/copyable-mutex.hpp +++ b/compat/copyable-mutex.hpp @@ -1,6 +1,6 @@ #pragma once -#include <memory> +#include <optional> #include <QMutex> @@ -8,7 +8,7 @@ class OTR_COMPAT_EXPORT mutex { - std::unique_ptr<QMutex> inner; + std::optional<QMutex> inner; public: enum mode @@ -19,7 +19,7 @@ public: mutex& operator=(const mutex& datum); mutex(const mutex& datum); - mutex(mode m = normal); + explicit mutex(mode m = normal); QMutex* operator&() const; operator QMutex*() const; |