diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-12-22 23:03:48 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-12-22 23:03:48 (GMT) |
commit | 8e8f4881aa6086f109ad5fe81d74b7e7daa9c914 (patch) | |
tree | b7e26b73dca82687509ba873dbebfd7c205b5646 /src/s60main/newallocator_hook.cpp | |
parent | 91bc1f39788a4a097e65f542b8515c68313ec17f (diff) | |
parent | 8565d6d123227615312a791ae7acc5b252db264a (diff) | |
download | Qt-8e8f4881aa6086f109ad5fe81d74b7e7daa9c914.zip Qt-8e8f4881aa6086f109ad5fe81d74b7e7daa9c914.tar.gz Qt-8e8f4881aa6086f109ad5fe81d74b7e7daa9c914.tar.bz2 |
Merge branch '4.7' of git://scm.dev.nokia.troll.no/qt/qt-water-team
* '4.7' of git://scm.dev.nokia.troll.no/qt/qt-water-team:
Fix infinite loop in qmake when reading malformed .ts files.
Fix libinfixed usage in Symbian when def files are used
Made documentation of QPixmap::createMaskFromColor match behaviour.
Improve performance of bilinear downscaling of images with neon.
Document the 'variant' basic type
Add double type to QML Basic Types docs
Remove redundant docs
Diffstat (limited to 'src/s60main/newallocator_hook.cpp')
-rw-r--r-- | src/s60main/newallocator_hook.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/s60main/newallocator_hook.cpp b/src/s60main/newallocator_hook.cpp index 9ea2ef0..3e259c2 100644 --- a/src/s60main/newallocator_hook.cpp +++ b/src/s60main/newallocator_hook.cpp @@ -69,6 +69,16 @@ TInt UserHeap::SetupThreadHeap(TBool aNotFirst, SStdEpocThreadCreateInfo& aInfo) // So the function is found and called dynamically, by library lookup. If it is not found, we // use the OS allocator creation functions instead. +#if defined(QT_LIBINFIX) +# define QT_LSTRING2(x) L##x +# define QT_LSTRING(x) QT_LSTRING2(x) +# define QT_LIBINFIX_UNICODE QT_LSTRING(QT_LIBINFIX) +#else +# define QT_LIBINFIX_UNICODE L"" +#endif + +_LIT(QtCoreLibName, "qtcore" QT_LIBINFIX_UNICODE L".dll"); + struct SThreadCreateInfo { TAny* iHandle; @@ -106,7 +116,7 @@ TInt UserHeap::SetupThreadHeap(TBool aNotFirst, SStdEpocThreadCreateInfo& aInfo) #ifndef __WINS__ // attempt to create the fast allocator through a known export ordinal in qtcore.dll RLibrary qtcore; - if (qtcore.Load(_L("qtcore.dll")) == KErrNone) + if (qtcore.Load(QtCoreLibName) == KErrNone) { const int qt_symbian_SetupThreadHeap_eabi_ordinal = 3713; TLibraryFunction libFunc = qtcore.Lookup(qt_symbian_SetupThreadHeap_eabi_ordinal); |