summaryrefslogtreecommitdiffstats
path: root/src/svnqt/smart_pointer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/svnqt/smart_pointer.hpp')
-rw-r--r--src/svnqt/smart_pointer.hpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/svnqt/smart_pointer.hpp b/src/svnqt/smart_pointer.hpp
index 2790df5..f579160 100644
--- a/src/svnqt/smart_pointer.hpp
+++ b/src/svnqt/smart_pointer.hpp
@@ -20,8 +20,8 @@
#ifndef _smart_pointer_hpp
#define _smart_pointer_hpp
-#if defined QT_THREAD_SUPPORT
-#include "qmutex.h"
+#if defined TQT_THREAD_SUPPORT
+#include "tqmutex.h"
#endif
#include "svnqt/svnqt_defines.hpp"
@@ -41,28 +41,28 @@ class ref_count {
protected:
//! reference count member
long m_RefCount;
-#ifdef QT_THREAD_SUPPORT
- QMutex m_RefcountMutex;
+#ifdef TQT_THREAD_SUPPORT
+ TQMutex m_RefcountMutex;
#endif
public:
//! first reference must be added after "new" via Pointer()
ref_count() : m_RefCount(0)
-#ifdef QT_THREAD_SUPPORT
+#ifdef TQT_THREAD_SUPPORT
,m_RefcountMutex()
#endif
{}
virtual ~ref_count() {}
//! add a reference
void Incr() {
-#ifdef QT_THREAD_SUPPORT
- QMutexLocker a(&m_RefcountMutex);
+#ifdef TQT_THREAD_SUPPORT
+ TQMutexLocker a(&m_RefcountMutex);
#endif
++m_RefCount;
}
//! delete a reference
bool Decr() {
-#ifdef QT_THREAD_SUPPORT
- QMutexLocker a(&m_RefcountMutex);
+#ifdef TQT_THREAD_SUPPORT
+ TQMutexLocker a(&m_RefcountMutex);
#endif
--m_RefCount;
return Shared();