summaryrefslogtreecommitdiffstats
path: root/src/tools/tqdatastream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/tqdatastream.cpp')
-rw-r--r--src/tools/tqdatastream.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/tools/tqdatastream.cpp b/src/tools/tqdatastream.cpp
index dd4114bcb..506e6dd04 100644
--- a/src/tools/tqdatastream.cpp
+++ b/src/tools/tqdatastream.cpp
@@ -117,7 +117,7 @@
The initial IODevice is usually set in the constructor, but can be
changed with setDevice(). If you've reached the end of the data
- (or if there is no IODevice set) atEnd() will return TRUE.
+ (or if there is no IODevice set) atEnd() will return true.
If you want the data to be compatible with an earlier version of
TQt use setVersion().
@@ -250,9 +250,9 @@ TQDataStream::TQDataStream()
if ( systemWordSize == 0 ) // get system features
tqSysInfo( &systemWordSize, &systemBigEndian );
dev = 0; // no device set
- owndev = FALSE;
+ owndev = false;
byteorder = BigEndian; // default byte order
- printable = FALSE;
+ printable = false;
ver = DefaultStreamVersion;
noswap = systemBigEndian;
}
@@ -274,9 +274,9 @@ TQDataStream::TQDataStream( TQIODevice *d )
if ( systemWordSize == 0 ) // get system features
tqSysInfo( &systemWordSize, &systemBigEndian );
dev = d; // set device
- owndev = FALSE;
+ owndev = false;
byteorder = BigEndian; // default byte order
- printable = FALSE;
+ printable = false;
ver = DefaultStreamVersion;
noswap = systemBigEndian;
}
@@ -306,9 +306,9 @@ TQDataStream::TQDataStream( TQByteArray a, int mode )
tqSysInfo( &systemWordSize, &systemBigEndian );
dev = new TQBuffer( a ); // create device
((TQBuffer *)dev)->open( mode ); // open device
- owndev = TRUE;
+ owndev = true;
byteorder = BigEndian; // default byte order
- printable = FALSE;
+ printable = false;
ver = DefaultStreamVersion;
noswap = systemBigEndian;
}
@@ -348,7 +348,7 @@ void TQDataStream::setDevice(TQIODevice *d )
{
if ( owndev ) {
delete dev;
- owndev = FALSE;
+ owndev = false;
}
dev = d;
}
@@ -368,9 +368,9 @@ void TQDataStream::unsetDevice()
/*!
\fn bool TQDataStream::atEnd() const
- Returns TRUE if the IO device has reached the end position (end of
+ Returns true if the IO device has reached the end position (end of
the stream or file) or if there is no IO device set; otherwise
- returns FALSE, i.e. if the current position of the IO device is
+ returns false, i.e. if the current position of the IO device is
before the end position.
\sa TQIODevice::atEnd()
@@ -380,10 +380,10 @@ void TQDataStream::unsetDevice()
\obsolete
- Returns TRUE if the IO device has reached the end position (end of
+ Returns true if the IO device has reached the end position (end of
stream or file) or if there is no IO device set.
- Returns FALSE if the current position of the read/write head of the IO
+ Returns false if the current position of the read/write head of the IO
device is somewhere before the end position.
\sa TQIODevice::atEnd()
@@ -423,8 +423,8 @@ void TQDataStream::setByteOrder( int bo )
/*!
\fn bool TQDataStream::isPrintableData() const
- Returns TRUE if the printable data flag has been set; otherwise
- returns FALSE.
+ Returns true if the printable data flag has been set; otherwise
+ returns false.
\sa setPrintableData()
*/
@@ -432,11 +432,11 @@ void TQDataStream::setByteOrder( int bo )
/*!
\fn void TQDataStream::setPrintableData( bool enable )
- If \a enable is TRUE, data will be output in a human readable
- format. If \a enable is FALSE, data will be output in a binary
+ If \a enable is true, data will be output in a human readable
+ format. If \a enable is false, data will be output in a binary
format.
- If \a enable is TRUE, the write functions will generate output
+ If \a enable is true, the write functions will generate output
that consists of printable characters (7 bit ASCII). This output
will typically be a lot larger than the default binary output, and
consequently slower to write.