summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libkmime/kmime_codecs.cpp6
-rw-r--r--libkmime/kmime_codecs.h4
-rw-r--r--libkmime/tests/test_kmime_codec.cpp2
3 files changed, 6 insertions, 6 deletions
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>* Codec::all = 0;
static KStaticDeleter<TQAsciiDict<Codec> > sdAll;
-#if defined(TQT_THREAD_SUPPORT)
+#if defined(QT_THREAD_SUPPORT)
TQMutex* Codec::dictLock = 0;
static KStaticDeleter<TQMutex> 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 <tqasciidict.h>
-#if defined(TQT_THREAD_SUPPORT)
+#if defined(QT_THREAD_SUPPORT)
# include <tqmutex.h>
#endif
@@ -58,7 +58,7 @@ class KDE_EXPORT Codec {
protected:
static TQAsciiDict<Codec>* 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}
*/