From 69d87202cb139ffe9e4b3ce92e434523b7b09b64 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 17 Oct 2018 19:46:30 +0900 Subject: QT_NO_* -> TQT_NO_* renaming. Signed-off-by: Michele Calgaro --- src/kernel/qlock.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/kernel/qlock.cpp') diff --git a/src/kernel/qlock.cpp b/src/kernel/qlock.cpp index 49edf98ca..f8b8be467 100644 --- a/src/kernel/qlock.cpp +++ b/src/kernel/qlock.cpp @@ -38,7 +38,7 @@ #include "qlock_p.h" -#ifndef QT_NO_QWS_MULTIPROCESS +#ifndef TQT_NO_QWS_MULTIPROCESS #include #include @@ -112,7 +112,7 @@ public: TQLock::TQLock( const TQString &filename, char id, bool create ) { -#ifndef QT_NO_QWS_MULTIPROCESS +#ifndef TQT_NO_QWS_MULTIPROCESS data = new TQLockData; data->count = 0; #ifdef Q_NO_SEMAPHORE @@ -153,7 +153,7 @@ TQLock::TQLock( const TQString &filename, char id, bool create ) TQLock::~TQLock() { -#ifndef QT_NO_QWS_MULTIPROCESS +#ifndef TQT_NO_QWS_MULTIPROCESS if ( locked() ) unlock(); #ifdef Q_NO_SEMAPHORE @@ -181,7 +181,7 @@ TQLock::~TQLock() bool TQLock::isValid() const { -#ifndef QT_NO_QWS_MULTIPROCESS +#ifndef TQT_NO_QWS_MULTIPROCESS return (data->id != -1); #else return TRUE; @@ -202,7 +202,7 @@ bool TQLock::isValid() const void TQLock::lock( Type t ) { -#ifndef QT_NO_QWS_MULTIPROCESS +#ifndef TQT_NO_QWS_MULTIPROCESS if ( !data->count ) { #ifdef Q_NO_SEMAPHORE int op = LOCK_SH; @@ -248,7 +248,7 @@ void TQLock::lock( Type t ) void TQLock::unlock() { -#ifndef QT_NO_QWS_MULTIPROCESS +#ifndef TQT_NO_QWS_MULTIPROCESS if( data->count ) { data->count--; if( !data->count ) { @@ -289,7 +289,7 @@ void TQLock::unlock() bool TQLock::locked() const { -#ifndef QT_NO_QWS_MULTIPROCESS +#ifndef TQT_NO_QWS_MULTIPROCESS return (data->count > 0); #else return FALSE; -- cgit v1.2.1