summaryrefslogtreecommitdiffstats
path: root/libkmime
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2018-09-17 19:40:50 +0200
committerSlávek Banko <[email protected]>2018-09-17 19:40:50 +0200
commit236373d72115fde4705cc7cbf84927527a3019c3 (patch)
treed806e916f1fea235ec610fdbf64a11f02df74afc /libkmime
parentb36fb9babec30a8dddbd751b256b960863304880 (diff)
downloadtdepim-236373d72115fde4705cc7cbf84927527a3019c3.tar.gz
tdepim-236373d72115fde4705cc7cbf84927527a3019c3.zip
Fix inadvertly renamed QT_THREAD_SUPPORT
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'libkmime')
-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}
*/