summaryrefslogtreecommitdiffstats
path: root/examples/network/infoprotocol/infourlclient/qip.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-07-01 22:09:14 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-07-08 09:01:42 +0900
commit81ade129093a279e6537db25710583fd2bba9427 (patch)
treea210834cbccc8aee2e9de7a8b7f41e1d31e2ced0 /examples/network/infoprotocol/infourlclient/qip.cpp
parent35ced32e331ee29fda1642616c803637952f5b22 (diff)
downloadtqt-81ade129.tar.gz
tqt-81ade129.zip
Replace TRUE/FALSE with boolean values true/false - part 2
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit c03a4800879ab62692e017e01c825ba12a421ad0)
Diffstat (limited to 'examples/network/infoprotocol/infourlclient/qip.cpp')
-rw-r--r--examples/network/infoprotocol/infourlclient/qip.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/network/infoprotocol/infourlclient/qip.cpp b/examples/network/infoprotocol/infourlclient/qip.cpp
index aed848388..71d112174 100644
--- a/examples/network/infoprotocol/infourlclient/qip.cpp
+++ b/examples/network/infoprotocol/infourlclient/qip.cpp
@@ -33,14 +33,14 @@ int Qip::supportedOperations() const
bool Qip::checkConnection( TQNetworkOperation * )
{
if ( socket->isOpen() )
- return TRUE;
+ return true;
// don't call connectToHost() if we are already trying to connect
if ( socket->state() == TQSocket::Connecting )
- return FALSE;
+ return false;
socket->connectToHost( url()->host(), url()->port() != -1 ? url()->port() : infoPort );
- return FALSE;
+ return false;
}
void Qip::operationListChildren( TQNetworkOperation * )
@@ -101,10 +101,10 @@ void Qip::socketReadyRead()
TQUrlInfo inf;
inf.setName( line.mid( 6 ) + TQString( ( line[ 4 ] == 'D' ) ? "/" : "" ) );
inf.setDir( line[ 4 ] == 'D' );
- inf.setSymLink( FALSE );
+ inf.setSymLink( false );
inf.setFile( line[ 4 ] == 'F' );
- inf.setWritable( FALSE );
- inf.setReadable( TRUE );
+ inf.setWritable( false );
+ inf.setReadable( true );
emit newChild( inf, operationInProgress() );
} else if ( line.startsWith( "213+" ) ) {
state = Data;