diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-22 12:05:18 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-22 12:13:05 +0900 |
| commit | a4ebd73f48610ed351c9c53f3646d0597f8ea7bc (patch) | |
| tree | 2edd219eef4cb8f35bb3844d06902ae8b2fcb565 /src/tools/tqdir_unix.cpp | |
| parent | 7d612f7c91d55501276a385a30dbadb121e7bd9f (diff) | |
| download | tqt-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/tqdir_unix.cpp')
| -rw-r--r-- | src/tools/tqdir_unix.cpp | 18 |
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() |
