summaryrefslogtreecommitdiff
path: root/qmake/tools/qfile.cpp
Side-by-side diff
Diffstat (limited to 'qmake/tools/qfile.cpp') (more/less context) (show whitespace changes)
-rw-r--r--qmake/tools/qfile.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qmake/tools/qfile.cpp b/qmake/tools/qfile.cpp
index a578b49..c088b55 100644
--- a/qmake/tools/qfile.cpp
+++ b/qmake/tools/qfile.cpp
@@ -89,5 +89,5 @@ extern bool qt_file_access( const QString& fn, int t );
QString line;
int i = 1;
- while ( !stream.eof() ) {
+ while ( !stream.atEnd() ) {
line = stream.readLine(); // line of text excluding '\n'
printf( "%3d: %s\n", i++, line.latin1() );
@@ -291,4 +291,5 @@ void QFile::flush()
/*!
Returns TRUE if the end of file has been reached; otherwise returns FALSE.
+ If QFile has not been open()'d, then the behavior is undefined.
\sa size()