From 1e5ad7ed3f1e6f66a8367318c32df6e5dd68250a Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Thu, 20 Aug 2009 13:21:48 +0300 Subject: Clarified comment on ordinal use in QLibraryPrivate::loadPlugin() Reviewed-by: TrustMe --- src/corelib/plugin/qlibrary.cpp | 7 +++++-- 1 file 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; } -- cgit v0.12