diff options
Diffstat (limited to 'src/plugins/pluginloader.cpp')
-rw-r--r-- | src/plugins/pluginloader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/pluginloader.cpp b/src/plugins/pluginloader.cpp index ad5dbc14..fc793647 100644 --- a/src/plugins/pluginloader.cpp +++ b/src/plugins/pluginloader.cpp @@ -13,5 +13,6 @@ PluginLoader::PluginLoader(const QString &fileName, QObject *parent) : QPluginLoader(fileName, parent) { const auto metadata = metaData()["MetaData"].toObject(); - for (const auto &value : metadata["schemes"].toArray()) { m_schemes.append(value.toString()); } + const auto schemes = metadata["schemes"].toArray(); + for (const auto &value : schemes) { m_schemes.append(value.toString()); } } |