summaryrefslogtreecommitdiffhomepage
path: root/compat/copyable-mutex.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'compat/copyable-mutex.hpp')
-rw-r--r--compat/copyable-mutex.hpp6
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;