diff options
author | Xizhi Zhu <xizhi.zhu@gmail.com> | 2012-01-22 16:41:55 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-24 01:09:19 +0100 |
commit | 65bad77d26cde50ad70b6909a9f81e9a1d058746 (patch) | |
tree | 0ddb1e037cc7f97689e0fe47e72ff7c85d4b8689 /src/corelib/plugin/qlibrary_unix.cpp | |
parent | 8511ed8bc29cabc6ef337c152cd0f2fb30d817a1 (diff) |
Remove Symbian code from QtCore.
Change-Id: I9abdc674bcfa7bb38ce27c5213c5a672f59e63d5
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/corelib/plugin/qlibrary_unix.cpp')
-rw-r--r-- | src/corelib/plugin/qlibrary_unix.cpp | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/corelib/plugin/qlibrary_unix.cpp b/src/corelib/plugin/qlibrary_unix.cpp index 1395a8636e..1a1e0c0bdf 100644 --- a/src/corelib/plugin/qlibrary_unix.cpp +++ b/src/corelib/plugin/qlibrary_unix.cpp @@ -86,30 +86,18 @@ bool QLibraryPrivate::load_sys() #if !defined(QT_NO_DYNAMIC_LIBRARY) QFileInfo fi(fileName); -#if defined(Q_OS_SYMBIAN) - QString path; // In Symbian, always resolve with just the filename - QString name; - - // Replace possible ".qtplugin" suffix with ".dll" - if (fi.suffix() == QLatin1String("qtplugin")) - name = fi.completeBaseName() + QLatin1String(".dll"); - else - name = fi.fileName(); -#else QString path = fi.path(); QString name = fi.fileName(); if (path == QLatin1String(".") && !fileName.startsWith(path)) path.clear(); else path += QLatin1Char('/'); -#endif + // The first filename we want to attempt to load is the filename as the callee specified. // Thus, the first attempt we do must be with an empty prefix and empty suffix. QStringList suffixes(QLatin1String("")), prefixes(QLatin1String("")); if (pluginState != IsAPlugin) { -#if !defined(Q_OS_SYMBIAN) prefixes << QLatin1String("lib"); -#endif #if defined(Q_OS_HPUX) // according to // http://docs.hp.com/en/B2355-90968/linkerdifferencesiapa.htm @@ -138,8 +126,6 @@ bool QLibraryPrivate::load_sys() #elif defined(Q_OS_AIX) suffixes << ".a"; -#elif defined(Q_OS_SYMBIAN) - suffixes << QLatin1String(".dll"); #else if (!fullVersion.isEmpty()) { suffixes << QString::fromLatin1(".so.%1").arg(fullVersion); @@ -209,11 +195,6 @@ bool QLibraryPrivate::load_sys() pHnd = dlopen(QFile::encodeName(attempt), dlFlags); #endif -#if defined(Q_OS_SYMBIAN) - // Never try again in symbian, dlopen already handles the library search logic, - // and there is only one possible suffix. - retry = false; -#else if (!pHnd && fileName.startsWith(QLatin1Char('/')) && QFile::exists(attempt)) { // We only want to continue if dlopen failed due to that the shared library did not exist. // However, we are only able to apply this check for absolute filenames (since they are @@ -221,7 +202,6 @@ bool QLibraryPrivate::load_sys() // This is all because dlerror is flawed and cannot tell us the reason why it failed. retry = false; } -#endif } } |