diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2009-08-20 10:21:48 (GMT) |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2009-08-20 10:21:48 (GMT) |
commit | 1e5ad7ed3f1e6f66a8367318c32df6e5dd68250a (patch) | |
tree | c88942574cf841b565e6cb22d337ccd392c4d1b9 /src | |
parent | 641ad254a43572a534a3db86120e7bbe5d2df147 (diff) | |
download | Qt-1e5ad7ed3f1e6f66a8367318c32df6e5dd68250a.zip Qt-1e5ad7ed3f1e6f66a8367318c32df6e5dd68250a.tar.gz Qt-1e5ad7ed3f1e6f66a8367318c32df6e5dd68250a.tar.bz2 |
Clarified comment on ordinal use in QLibraryPrivate::loadPlugin()
Reviewed-by: TrustMe
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/plugin/qlibrary.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/corelib/plugin/qlibrary.cpp b/src/corelib/plugin/qlibrary.cpp index 4cd3386..3a5bb55 100644 --- a/src/corelib/plugin/qlibrary.cpp +++ b/src/corelib/plugin/qlibrary.cpp @@ -499,9 +499,12 @@ bool QLibraryPrivate::loadPlugin() if (load()) { instance = (QtPluginInstanceFunction)resolve("qt_plugin_instance"); #if defined(Q_OS_SYMBIAN) - // If resolving with function name failed (i.e. not STDDLL), try resolving using known ordinal - if (!instance) + if (!instance) { + // If resolving with function name failed (i.e. not STDDLL), + // try resolving using known ordinal, which for + // qt_plugin_instance function is always "2". instance = (QtPluginInstanceFunction)resolve("2"); + } #endif return instance; } |