diff options
author | Timothy Pearson <[email protected]> | 2012-02-13 17:43:39 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-02-13 17:43:39 -0600 |
commit | 359640943bcf155faa9a067dde9e00a123276290 (patch) | |
tree | fb3d55ea5e18949042fb0064123fb73d2b1eb932 /src/tools/qdir_unix.cpp | |
parent | a829bcdc533e154000803d517200d32fe762e85c (diff) | |
download | tqt3-359640943bcf155faa9a067dde9e00a123276290.tar.gz tqt3-359640943bcf155faa9a067dde9e00a123276290.zip |
Automated update from Qt3
Diffstat (limited to 'src/tools/qdir_unix.cpp')
-rw-r--r-- | src/tools/qdir_unix.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/tools/qdir_unix.cpp b/src/tools/qdir_unix.cpp index c5d7173e7..54ca9df56 100644 --- a/src/tools/qdir_unix.cpp +++ b/src/tools/qdir_unix.cpp @@ -98,7 +98,10 @@ TQString TQDir::canonicalPath() const slashify( r ); // always make sure we go back to the current dir - ::chdir( cur ); + if (::chdir( cur ) < 0) { + // Error! + // FIXME + } } #endif /* __GLIBC__ && !PATH_MAX */ return r; @@ -206,9 +209,9 @@ bool TQDir::readDirEntries( const TQString &nameFilter, int i; if ( !fList ) { fList = new TQStringList; - Q_CHECK_PTR( fList ); + TQ_CHECK_PTR( fList ); fiList = new TQFileInfoList; - Q_CHECK_PTR( fiList ); + TQ_CHECK_PTR( fiList ); fiList->setAutoDelete( TRUE ); } else { fList->clear(); |