diff options
Diffstat (limited to 'modules/mux_qt/mux_qt.cpp')
-rw-r--r-- | modules/mux_qt/mux_qt.cpp | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/modules/mux_qt/mux_qt.cpp b/modules/mux_qt/mux_qt.cpp index e5c6d96ff..c0f3c93c9 100644 --- a/modules/mux_qt/mux_qt.cpp +++ b/modules/mux_qt/mux_qt.cpp @@ -12,29 +12,21 @@ namespace Botan { -namespace { - -/************************************************* -* Qt Mutex * -*************************************************/ -class Qt_Mutex : public Mutex - { - public: - void lock() { mutex.lock(); } - void unlock() { mutex.unlock(); } - private: - QMutex mutex; - }; - -} - /************************************************* * Qt Mutex Factory * *************************************************/ Mutex* Qt_Mutex_Factory::make() { + class Qt_Mutex : public Mutex + { + public: + void lock() { mutex.lock(); } + void unlock() { mutex.unlock(); } + private: + QMutex mutex; + }; + return new Qt_Mutex(); } } - |