diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2010-06-02 13:53:14 +0100 |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2010-06-02 13:53:14 +0100 |
commit | 857b2618f3e7574bdff605554b72e6f286ce666a (patch) | |
tree | 59ec992e5c2dd268c5f123510198b3840010febb /src/corelib/kernel/qtranslator.cpp | |
parent | 8f517a60c93ec64478772b4cb2ce7d2cd2967647 (diff) | |
download | qt4-tools-857b2618f3e7574bdff605554b72e6f286ce666a.tar.gz |
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/kernel/qtranslator.cpp')
-rw-r--r-- | src/corelib/kernel/qtranslator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qtranslator.cpp b/src/corelib/kernel/qtranslator.cpp index ca54c6cd8c..1321b14356 100644 --- a/src/corelib/kernel/qtranslator.cpp +++ b/src/corelib/kernel/qtranslator.cpp @@ -56,7 +56,7 @@ #include "qhash.h" #include "qtranslator_p.h" -#if defined(Q_OS_UNIX) +#if defined(Q_OS_UNIX) && !defined(Q_OS_SYMBIAN) #define QT_USE_MMAP #include "private/qcore_unix_p.h" #endif |