Make template instantiation in QFactoryLoader explicit

gcc 4.9.2 does not understand it otherwise.

Change-Id: I131a14c526c1213665fdbbeb75032e41eac6cd63
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
bb10
Ulf Hermann 2016-01-06 13:26:40 +01:00
parent aaf0b72a81
commit 80a741f361
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ PluginInterface *qLoadPlugin(const QFactoryLoader *loader,
template <class PluginInterface, class FactoryInterface, typename Arg>
Q_DECL_DEPRECATED PluginInterface *qLoadPlugin1(const QFactoryLoader *loader, const QString &key, Arg &&arg)
{ return qLoadPlugin(loader, key, std::forward<Arg>(arg)); }
{ return qLoadPlugin<PluginInterface, FactoryInterface>(loader, key, std::forward<Arg>(arg)); }
QT_END_NAMESPACE