From 3a477fb70884668d163f6631a73c8ab894928bcc Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 8 Dec 2025 15:17:51 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 8 Signed-off-by: Michele Calgaro (cherry picked from commit 7d612f7c91d55501276a385a30dbadb121e7bd9f) --- 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 948e7602f..1a3c78a5c 100644 --- a/src/kernel/qlock.cpp +++ b/src/kernel/qlock.cpp @@ -105,9 +105,9 @@ public: Creates a lock. \a filename is the file path of the Unix-domain socket the TQt/Embedded client is using. \a id is the name of the - particular lock to be created on that socket. If \a create is TRUE + particular lock to be created on that socket. If \a create is true the lock is to be created (as the TQt/Embedded server does); if \a - create is FALSE the lock should exist already (as the TQt/Embedded + create is false the lock should exist already (as the TQt/Embedded client expects). */ @@ -176,7 +176,7 @@ TQLock::~TQLock() /*! \fn bool TQLock::isValid() const - Returns TRUE if the lock constructor was succesful; returns FALSE if + Returns true if the lock constructor was succesful; returns false if the lock could not be created or was not available to connect to. */ @@ -185,7 +185,7 @@ bool TQLock::isValid() const #ifndef TQT_NO_QWS_MULTIPROCESS return (data->id != -1); #else - return TRUE; + return true; #endif } @@ -284,8 +284,8 @@ void TQLock::unlock() /*! \fn bool TQLock::locked() const - Returns TRUE if the lock is currently held by the current process; - otherwise returns FALSE. + Returns true if the lock is currently held by the current process; + otherwise returns false. */ bool TQLock::locked() const @@ -293,6 +293,6 @@ bool TQLock::locked() const #ifndef TQT_NO_QWS_MULTIPROCESS return (data->count > 0); #else - return FALSE; + return false; #endif } -- cgit v1.2.3