aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mux_qt
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-06-23 10:34:49 +0000
committerlloyd <[email protected]>2006-06-23 10:34:49 +0000
commit571fea5ac667b88a66604ecdba05d8324f5e9de7 (patch)
treefc7f8191e779ad3dc6fb2e4ac4e6c9f2acfed7c3 /modules/mux_qt
parent714fe898764407cdb9ebcea30cbc69bf1a4bada8 (diff)
Inline a number of small objects that are only used in a local context
(ie, a single function). This will, unfortunately, break GCC 2.95.x support. Most of the operating systems that had shipped with 2.95.x, like OpenBSD and QNX, have since upgraded. Anyone needing 2.95.x support will have to continue using 1.4.x
Diffstat (limited to 'modules/mux_qt')
-rw-r--r--modules/mux_qt/mux_qt.cpp26
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();
}
}
-