From d7633c195a464e4d344ada9eea61afd10110598a Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 4 May 2011 19:54:24 +0000 Subject: 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 --- src/svnqt/smart_pointer.hpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/svnqt/smart_pointer.hpp') 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(); -- cgit v1.2.1