summaryrefslogtreecommitdiffstats
path: root/src/tools/tqfile.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/tqfile.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/tqfile.cpp')
-rw-r--r--src/tools/tqfile.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tools/tqfile.cpp b/src/tools/tqfile.cpp
index d67578929..2ebb835f6 100644
--- a/src/tools/tqfile.cpp
+++ b/src/tools/tqfile.cpp
@@ -102,7 +102,7 @@ extern bool qt_file_access( const TQString& fn, int t );
The size of the file is returned by size(). You can get the
current file position or move to a new file position using the
at() functions. If you've reached the end of the file, atEnd()
- returns TRUE. The file handle is returned by handle().
+ returns true. The file handle is returned by handle().
Here is a code fragment that uses TQTextStream to read a text file
line by line. It prints each line with a line number.
@@ -206,7 +206,7 @@ void TQFile::init()
fd = 0;
length = 0;
ioIndex = 0;
- ext_f = FALSE; // not an external file handle
+ ext_f = false; // not an external file handle
}
@@ -257,7 +257,7 @@ void TQFile::setName( const TQString &name )
/*!
\overload
- Returns TRUE if this file exists; otherwise returns FALSE.
+ Returns true if this file exists; otherwise returns false.
\sa name()
*/
@@ -268,8 +268,8 @@ bool TQFile::exists() const
}
/*!
- Returns TRUE if the file given by \a fileName exists; otherwise
- returns FALSE.
+ Returns true if the file given by \a fileName exists; otherwise
+ returns false.
*/
bool TQFile::exists( const TQString &fileName )
@@ -280,7 +280,7 @@ bool TQFile::exists( const TQString &fileName )
/*!
Removes the file specified by the file name currently set. Returns
- TRUE if successful; otherwise returns FALSE.
+ true if successful; otherwise returns false.
The file is closed before it is removed.
*/
@@ -326,7 +326,7 @@ void TQFile::flush()
*/
/*!
- Returns TRUE if the end of file has been reached; otherwise returns FALSE.
+ Returns true if the end of file has been reached; otherwise returns false.
If TQFile has not been open()'d, then the behavior is undefined.
\sa size()
@@ -338,11 +338,11 @@ bool TQFile::atEnd() const
#if defined(QT_CHECK_STATE)
tqWarning( "TQFile::atEnd: File is not open" );
#endif
- return FALSE;
+ return false;
}
if ( isDirectAccess() && !isTranslated() ) {
if ( at() < size() )
- return FALSE;
+ return false;
}
const TQString errorString = d->errorString;
const bool ret = TQIODevice::atEnd();