diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2010-06-02 12:53:14 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2010-06-02 12:53:14 (GMT) |
commit | 857b2618f3e7574bdff605554b72e6f286ce666a (patch) | |
tree | 59ec992e5c2dd268c5f123510198b3840010febb /src/corelib/io/qresource.cpp | |
parent | 8f517a60c93ec64478772b4cb2ce7d2cd2967647 (diff) | |
download | Qt-857b2618f3e7574bdff605554b72e6f286ce666a.zip Qt-857b2618f3e7574bdff605554b72e6f286ce666a.tar.gz Qt-857b2618f3e7574bdff605554b72e6f286ce666a.tar.bz2 |
Avoid mmap() on symbian os
QResource and QTranslator use mmap() on unix as an optimisation.
Symbian OS doesn't support memory mapped files, so mmap() is actually
worse than opening and reading the file yourself.
So, switched off mmap() usage on symbian.
Reviewed-by: mread
Diffstat (limited to 'src/corelib/io/qresource.cpp')
-rw-r--r-- | src/corelib/io/qresource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qresource.cpp b/src/corelib/io/qresource.cpp index 8e76e9e..ce9c57e 100644 --- a/src/corelib/io/qresource.cpp +++ b/src/corelib/io/qresource.cpp @@ -928,7 +928,7 @@ public: } }; -#if defined(Q_OS_UNIX) +#if defined(Q_OS_UNIX) && !defined(Q_OS_SYMBIAN) #define QT_USE_MMAP #endif |