diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-06-11 10:51:54 +0200 |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-06-11 16:07:01 +0200 |
commit | 0f60b6e05a707630e02655c60ae60884262a4b8e (patch) | |
tree | 564982f5dc6a2266818e050b2576ef4f5e74eaf5 /src/corelib/io/qfile.cpp | |
parent | f0a4a37a5182660580fd361110d3fd51463221d8 (diff) | |
download | qt4-tools-0f60b6e05a707630e02655c60ae60884262a4b8e.tar.gz |
remove q->layout() and q->parentWidget() code where unnecessary
Diffstat (limited to 'src/corelib/io/qfile.cpp')
-rw-r--r-- | src/corelib/io/qfile.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/corelib/io/qfile.cpp b/src/corelib/io/qfile.cpp index 4deaddb910..bfb1aae597 100644 --- a/src/corelib/io/qfile.cpp +++ b/src/corelib/io/qfile.cpp @@ -154,17 +154,15 @@ QFilePrivate::setError(QFile::FileError err) void QFilePrivate::setError(QFile::FileError err, const QString &errStr) { - Q_Q(QFile); error = err; - q->setErrorString(errStr); + errorString = errStr; } void QFilePrivate::setError(QFile::FileError err, int errNum) { - Q_Q(QFile); error = err; - q->setErrorString(qt_error_string(errNum)); + errorString = qt_error_string(errNum); } //************* QFile |