summaryrefslogtreecommitdiffstats
path: root/src/tools/qdir_unix.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-02-13 17:43:39 -0600
committerTimothy Pearson <[email protected]>2012-02-13 17:43:39 -0600
commit359640943bcf155faa9a067dde9e00a123276290 (patch)
treefb3d55ea5e18949042fb0064123fb73d2b1eb932 /src/tools/qdir_unix.cpp
parenta829bcdc533e154000803d517200d32fe762e85c (diff)
downloadtqt3-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.cpp9
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();