From a4ebd73f48610ed351c9c53f3646d0597f8ea7bc Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 22 Dec 2025 12:05:18 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 9 Signed-off-by: Michele Calgaro --- src/tools/tqbuffer.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/tools/tqbuffer.cpp') diff --git a/src/tools/tqbuffer.cpp b/src/tools/tqbuffer.cpp index 827f5c187..3bf7f2f7f 100644 --- a/src/tools/tqbuffer.cpp +++ b/src/tools/tqbuffer.cpp @@ -135,9 +135,9 @@ TQBuffer::~TQBuffer() /*! - Replaces the buffer's contents with \a buf and returns TRUE. + Replaces the buffer's contents with \a buf and returns true. - Does nothing (and returns FALSE) if isOpen() is TRUE. + Does nothing (and returns false) if isOpen() is true. Note that if you open the buffer in write mode (\c IO_WriteOnly or IO_ReadWrite) and write something into the buffer, \a buf is also @@ -152,7 +152,7 @@ bool TQBuffer::setBuffer( TQByteArray buf ) #if defined(QT_CHECK_STATE) tqWarning( "TQBuffer::setBuffer: Buffer is open" ); #endif - return FALSE; + return false; } a = buf; a_len = a.size(); @@ -160,7 +160,7 @@ bool TQBuffer::setBuffer( TQByteArray buf ) if ( a_inc < 16 ) a_inc = 16; ioIndex = 0; - return TRUE; + return true; } /*! @@ -174,8 +174,8 @@ bool TQBuffer::setBuffer( TQByteArray buf ) /*! \reimp - Opens the buffer in mode \a m. Returns TRUE if successful; - otherwise returns FALSE. The buffer must be opened before use. + Opens the buffer in mode \a m. Returns true if successful; + otherwise returns false. The buffer must be opened before use. The mode parameter \a m must be a combination of the following flags. \list @@ -195,7 +195,7 @@ bool TQBuffer::open( int m ) #if defined(QT_CHECK_STATE) tqWarning( "TQBuffer::open: Buffer already open" ); #endif - return FALSE; + return false; } setMode( m ); if ( m & IO_Truncate ) { // truncate buffer @@ -210,7 +210,7 @@ bool TQBuffer::open( int m ) a_inc = 16; setState( IO_Open ); resetStatus(); - return TRUE; + return true; } /*! @@ -263,17 +263,17 @@ bool TQBuffer::at( Offset pos ) #if defined(QT_CHECK_STATE) if ( !isOpen() ) { tqWarning( "TQBuffer::at: Buffer is not open" ); - return FALSE; + return false; } #endif if ( pos > a_len ) { #if defined(QT_CHECK_RANGE) tqWarning( "TQBuffer::at: Index %lu out of range", pos ); #endif - return FALSE; + return false; } ioIndex = pos; - return TRUE; + return true; } -- cgit v1.2.3