Commit 14eee968 authored by Victor Yacovlev's avatar Victor Yacovlev

Template fix

parent eb516110
...@@ -91,7 +91,7 @@ public: ...@@ -91,7 +91,7 @@ public:
template <class PluginInterface> template <class PluginInterface>
PluginInterface* findPlugin() { PluginInterface* findPlugin() {
QList<KPlugin*> plugins = loadedPlugins(); QList<KPlugin*> plugins = loadedPlugins("");
PluginInterface* result = nullptr; PluginInterface* result = nullptr;
for (int i=0; i<plugins.size(); i++) { for (int i=0; i<plugins.size(); i++) {
KPlugin * plugin = plugins[i]; KPlugin * plugin = plugins[i];
...@@ -104,7 +104,7 @@ public: ...@@ -104,7 +104,7 @@ public:
template <class PluginInterface> template <class PluginInterface>
PluginInterface* findPlugin(const QByteArray & name) { PluginInterface* findPlugin(const QByteArray & name) {
QList<KPlugin*> plugins = loadedPlugins(); QList<KPlugin*> plugins = loadedPlugins("");
PluginInterface* result = nullptr; PluginInterface* result = nullptr;
for (int i=0; i<plugins.size(); i++) { for (int i=0; i<plugins.size(); i++) {
KPlugin * plugin = plugins[i]; KPlugin * plugin = plugins[i];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment