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/qsocketnotifier.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/kernel/qsocketnotifier.cpp') diff --git a/src/kernel/qsocketnotifier.cpp b/src/kernel/qsocketnotifier.cpp index b89a512ed..e1b645b61 100644 --- a/src/kernel/qsocketnotifier.cpp +++ b/src/kernel/qsocketnotifier.cpp @@ -154,7 +154,7 @@ TQSocketNotifier::TQSocketNotifier( int socket, Type type, TQObject *parent, #endif sockfd = socket; sntype = type; - snenabled = TRUE; + snenabled = true; TQApplication::eventLoop()->registerSocketNotifier( this ); } @@ -164,7 +164,7 @@ TQSocketNotifier::TQSocketNotifier( int socket, Type type, TQObject *parent, TQSocketNotifier::~TQSocketNotifier() { - setEnabled( FALSE ); + setEnabled( false ); } @@ -208,14 +208,14 @@ TQSocketNotifier::~TQSocketNotifier() /*! \fn bool TQSocketNotifier::isEnabled() const - Returns TRUE if the notifier is enabled; otherwise returns FALSE. + Returns true if the notifier is enabled; otherwise returns false. \sa setEnabled() */ /*! - Enables the notifier if \a enable is TRUE or disables it if \a - enable is FALSE. + Enables the notifier if \a enable is true or disables it if \a + enable is false. The notifier is enabled by default. @@ -259,7 +259,7 @@ bool TQSocketNotifier::event( TQEvent *e ) TQObject::event( e ); // will activate filters if ( e->type() == TQEvent::SockAct ) { emit activated( sockfd ); - return TRUE; + return true; } - return FALSE; + return false; } -- cgit v1.2.3