summaryrefslogtreecommitdiffstats
path: root/src/tools/tqdir_unix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/tqdir_unix.cpp')
-rw-r--r--src/tools/tqdir_unix.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tools/tqdir_unix.cpp b/src/tools/tqdir_unix.cpp
index 3587a706a..f58b20875 100644
--- a/src/tools/tqdir_unix.cpp
+++ b/src/tools/tqdir_unix.cpp
@@ -145,7 +145,7 @@ bool TQDir::rename( const TQString &name, const TQString &newName,
#if defined(QT_CHECK_NULL)
tqWarning( "TQDir::rename: Empty or null file name(s)" );
#endif
- return FALSE;
+ return false;
}
TQString fn1 = filePath( name, acceptAbsPaths );
TQString fn2 = filePath( newName, acceptAbsPaths );
@@ -200,7 +200,7 @@ bool TQDir::isRelativePath( const TQString &path )
{
int len = path.length();
if ( len == 0 )
- return TRUE;
+ return true;
return path[0] != '/';
}
@@ -213,7 +213,7 @@ bool TQDir::readDirEntries( const TQString &nameFilter,
TQ_CHECK_PTR( fList );
fiList = new TQFileInfoList;
TQ_CHECK_PTR( fiList );
- fiList->setAutoDelete( TRUE );
+ fiList->setAutoDelete( true );
} else {
fList->clear();
fiList->clear();
@@ -236,7 +236,7 @@ bool TQDir::readDirEntries( const TQString &nameFilter,
dir = opendir( TQFile::encodeName(dPath) );
if ( !dir )
- return FALSE; // cannot read the directory
+ return false; // cannot read the directory
#if defined(TQT_THREAD_SUPPORT) && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && !defined(Q_OS_CYGWIN)
union {
@@ -285,7 +285,7 @@ bool TQDir::readDirEntries( const TQString &nameFilter,
qt_cmp_si_sortSpec = sortSpec;
qsort( si, i, sizeof(si[0]), qt_cmp_si );
// put them back in the list
- fiList->setAutoDelete( FALSE );
+ fiList->setAutoDelete( false );
fiList->clear();
int j;
for ( j=0; j<i; j++ ) {
@@ -293,15 +293,15 @@ bool TQDir::readDirEntries( const TQString &nameFilter,
fList->append( si[j].item->fileName() );
}
delete [] si;
- fiList->setAutoDelete( TRUE );
+ fiList->setAutoDelete( true );
}
if ( filterSpec == (FilterSpec)filtS && sortSpec == (SortSpec)sortS &&
nameFilter == nameFilt )
- dirty = FALSE;
+ dirty = false;
else
- dirty = TRUE;
- return TRUE;
+ dirty = true;
+ return true;
}
const TQFileInfoList * TQDir::drives()