summaryrefslogtreecommitdiffstats
path: root/src/tools/qdir_unix.cpp
diff options
context:
space:
mode:
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();