From 2df70f03d493f5226821dd2e1da3759e3abceb02 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 18 Sep 2018 01:19:46 +0900 Subject: Revert "QT_THREAD_SUPPORT -> TQT_THREAD_SUPPORT conversion to align to updated admin module" The original commit was a mistake and should not have been pushed. This reverts commit f849f22528ee9eb5eeb1f9aa92822846b2b3e01f. --- src/tools/qregexp.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/tools/qregexp.cpp') diff --git a/src/tools/qregexp.cpp b/src/tools/qregexp.cpp index 6d6790b..5b990f8 100644 --- a/src/tools/qregexp.cpp +++ b/src/tools/qregexp.cpp @@ -52,10 +52,10 @@ #include "qstring.h" #include "qtl.h" -#ifdef TQT_THREAD_SUPPORT +#ifdef QT_THREAD_SUPPORT #include "qthreadstorage.h" #include -#endif // TQT_THREAD_SUPPORT +#endif // QT_THREAD_SUPPORT #undef QT_TRANSLATE_NOOP #define QT_TRANSLATE_NOOP( context, sourceText ) sourceText @@ -3212,25 +3212,25 @@ struct QRegExpPrivate #ifndef QT_NO_REGEXP_OPTIM static QSingleCleanupHandler > cleanup_cache; -# ifndef TQT_THREAD_SUPPORT +# ifndef QT_THREAD_SUPPORT static QCache *engineCache = 0; -# endif // TQT_THREAD_SUPPORT +# endif // QT_THREAD_SUPPORT #endif // QT_NO_REGEXP_OPTIM static void regexpEngine( QRegExpEngine *&eng, const QString &pattern, bool caseSensitive, bool deref ) { -# ifdef TQT_THREAD_SUPPORT +# ifdef QT_THREAD_SUPPORT static QThreadStorage *> engineCaches; QCache *engineCache = 0; QThreadInstance *currentThread = QThreadInstance::current(); if (currentThread) engineCache = engineCaches.localData(); -#endif // TQT_THREAD_SUPPORT +#endif // QT_THREAD_SUPPORT if ( !deref ) { #ifndef QT_NO_REGEXP_OPTIM -# ifdef TQT_THREAD_SUPPORT +# ifdef QT_THREAD_SUPPORT if ( currentThread ) # endif { @@ -3251,18 +3251,18 @@ static void regexpEngine( QRegExpEngine *&eng, const QString &pattern, if ( eng->deref() ) { #ifndef QT_NO_REGEXP_OPTIM -# ifdef TQT_THREAD_SUPPORT +# ifdef QT_THREAD_SUPPORT if ( currentThread ) # endif { if ( engineCache == 0 ) { engineCache = new QCache; engineCache->setAutoDelete( TRUE ); -# ifdef TQT_THREAD_SUPPORT +# ifdef QT_THREAD_SUPPORT engineCaches.setLocalData(engineCache); # else cleanup_cache.set( &engineCache ); -# endif // !TQT_THREAD_SUPPORT +# endif // !QT_THREAD_SUPPORT } if ( !pattern.isNull() && engineCache->insert(pattern, eng, 4 + pattern.length() / 4) ) -- cgit v1.2.1