summaryrefslogtreecommitdiffstats
path: root/src/tools/tqbuffer.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-12-22 12:05:18 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-12-22 12:13:05 +0900
commita4ebd73f48610ed351c9c53f3646d0597f8ea7bc (patch)
tree2edd219eef4cb8f35bb3844d06902ae8b2fcb565 /src/tools/tqbuffer.cpp
parent7d612f7c91d55501276a385a30dbadb121e7bd9f (diff)
downloadtqt-rename/true-false-9.tar.gz
tqt-rename/true-false-9.zip
Replace TRUE/FALSE with boolean values true/false - part 9rename/true-false-9
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/tools/tqbuffer.cpp')
-rw-r--r--src/tools/tqbuffer.cpp22
1 files changed, 11 insertions, 11 deletions
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;
}