From 236373d72115fde4705cc7cbf84927527a3019c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 17 Sep 2018 19:40:50 +0200 Subject: Fix inadvertly renamed QT_THREAD_SUPPORT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- libkmime/kmime_codecs.cpp | 6 +++--- libkmime/kmime_codecs.h | 4 ++-- libkmime/tests/test_kmime_codec.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'libkmime') diff --git a/libkmime/kmime_codecs.cpp b/libkmime/kmime_codecs.cpp index bf33159e0..93e41288d 100644 --- a/libkmime/kmime_codecs.cpp +++ b/libkmime/kmime_codecs.cpp @@ -52,7 +52,7 @@ namespace KMime { // global list of KMime::Codec's TQAsciiDict* Codec::all = 0; static KStaticDeleter > sdAll; -#if defined(TQT_THREAD_SUPPORT) +#if defined(QT_THREAD_SUPPORT) TQMutex* Codec::dictLock = 0; static KStaticDeleter sdDictLock; #endif @@ -74,7 +74,7 @@ void Codec::fillDictionary() { } Codec * Codec::codecForName( const char * name ) { -#if defined(TQT_THREAD_SUPPORT) +#if defined(QT_THREAD_SUPPORT) if ( !dictLock ) sdDictLock.setObject( dictLock, new TQMutex ); dictLock->lock(); // protect "all" @@ -84,7 +84,7 @@ Codec * Codec::codecForName( const char * name ) { fillDictionary(); } Codec * codec = (*all)[ name ]; -#if defined(TQT_THREAD_SUPPORT) +#if defined(QT_THREAD_SUPPORT) dictLock->unlock(); #endif diff --git a/libkmime/kmime_codecs.h b/libkmime/kmime_codecs.h index 1bd8c9ecf..27ad5b785 100644 --- a/libkmime/kmime_codecs.h +++ b/libkmime/kmime_codecs.h @@ -33,7 +33,7 @@ #define __KMIME_CODECS__ #include -#if defined(TQT_THREAD_SUPPORT) +#if defined(QT_THREAD_SUPPORT) # include #endif @@ -58,7 +58,7 @@ class KDE_EXPORT Codec { protected: static TQAsciiDict* all; -#if defined(TQT_THREAD_SUPPORT) +#if defined(QT_THREAD_SUPPORT) static TQMutex* dictLock; #endif diff --git a/libkmime/tests/test_kmime_codec.cpp b/libkmime/tests/test_kmime_codec.cpp index 3d32f36b4..39abf2b90 100644 --- a/libkmime/tests/test_kmime_codec.cpp +++ b/libkmime/tests/test_kmime_codec.cpp @@ -1,7 +1,7 @@ /* test program for KMime::Codec's: compile with: g++ -I$TQTDIR/include -I$TDEDIR/include -L$TQTDIR/lib -L$TDEDIR/lib \ - -lqt-mt -ltdecore -ltdenetwork -O2 -pthread -DTQT_THREAD_SUPPORT \ + -lqt-mt -ltdecore -ltdenetwork -O2 -pthread -DQT_THREAD_SUPPORT \ -o test_kmime_codec{,.cpp} */ -- cgit v1.2.1