summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Abecasis <joao.abecasis@nokia.com>2010-11-16 14:28:17 (GMT)
committerJoão Abecasis <joao.abecasis@nokia.com>2010-11-16 14:32:31 (GMT)
commiteb474123412c52e74f402e082c85286047c9aeda (patch)
treef4d6e44186bede808423f9c112f1e5d959534ca6
parentb251f7f9d2d1fb336e0b4f92858aad2eab0ba88c (diff)
downloadQt-eb474123412c52e74f402e082c85286047c9aeda.zip
Qt-eb474123412c52e74f402e082c85286047c9aeda.tar.gz
Qt-eb474123412c52e74f402e082c85286047c9aeda.tar.bz2
QFile: Fix compilation
EACCES was not defined at this point, but it is also not needed, since we know exactly why unmap is failing. Reviewed-by: Shane Kearns
-rw-r--r--src/corelib/io/qfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qfile.cpp b/src/corelib/io/qfile.cpp
index f0ca11b..fac4ac6 100644
--- a/src/corelib/io/qfile.cpp
+++ b/src/corelib/io/qfile.cpp
@@ -1224,7 +1224,7 @@ bool QFile::unmap(uchar *address)
d->setError(d->fileEngine->error(), d->fileEngine->errorString());
return success;
}
- d->setError(PermissionsError, QSystemError(EACCES, QSystemError::StandardLibraryError).toString());
+ d->setError(PermissionsError, tr("No file engine available or engine does not support UnMapExtension"));
return false;
}