QtGui/Windows: Fix static build.
qtbase\src\gui\kernel\qgenericpluginfactory.cpp:70: error: C2220: warning treated as error - no 'object' file generated qtbase\src\gui\kernel\qgenericpluginfactory.cpp:70: warning: C4100: 'specification' : unreferenced formal parameter Change-Id: I2dbb114fa9feaf862b4554b128caca0dcb5e291e Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>bb10
parent
dd02c1eb38
commit
765fea8dad
|
|
@ -69,13 +69,13 @@ Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,
|
|||
*/
|
||||
QObject *QGenericPluginFactory::create(const QString& key, const QString &specification)
|
||||
{
|
||||
#if (!defined(Q_OS_WIN32) || defined(QT_SHARED)) && !defined(QT_NO_LIBRARY)
|
||||
const QString driver = key.toLower();
|
||||
|
||||
#if !defined(Q_OS_WIN32) || defined(QT_SHARED)
|
||||
#ifndef QT_NO_LIBRARY
|
||||
if (QObject *object = qLoadPlugin1<QObject, QGenericPlugin>(loader(), driver, specification))
|
||||
return object;
|
||||
#endif
|
||||
#else // (!Q_OS_WIN32 || QT_SHARED) && !QT_NO_LIBRARY
|
||||
Q_UNUSED(key)
|
||||
Q_UNUSED(specification)
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue