summaryrefslogtreecommitdiffstats
path: root/src/svnqt/smart_pointer.hpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-04 19:54:24 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-04 19:54:24 +0000
commitd7633c195a464e4d344ada9eea61afd10110598a (patch)
tree1f2da0b135f3ed84955e340cae823f00c4ce7284 /src/svnqt/smart_pointer.hpp
parent3fa7eb804f67b2789f128075cc2522f398640250 (diff)
downloadtdesvn-d7633c195a464e4d344ada9eea61afd10110598a.tar.gz
tdesvn-d7633c195a464e4d344ada9eea61afd10110598a.zip
Port kdesvn to TQt4
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdesvn@1230412 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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();