summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-14 12:35:50 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-14 12:35:50 (GMT)
commit21706a35f648a256ea62e44a8ad2d48e480cbaaa (patch)
tree8f19b48dd58691319fe74a4f2fe6acab8ec4a609
parenta31bf6f0c6690c697e42771c531ceb8fb1bac29b (diff)
Remove duplicate code
-rw-r--r--messageviewer/src/viewerplugins/viewerpluginmanager.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/messageviewer/src/viewerplugins/viewerpluginmanager.cpp b/messageviewer/src/viewerplugins/viewerpluginmanager.cpp
index 052a822..0caef65 100644
--- a/messageviewer/src/viewerplugins/viewerpluginmanager.cpp
+++ b/messageviewer/src/viewerplugins/viewerpluginmanager.cpp
@@ -136,11 +136,7 @@ bool ViewerPluginManagerPrivate::initializePluginList()
while (i.hasPrevious()) {
ViewerPluginInfo info;
info.metaData = i.previous();
- PimCommon::PluginUtilData pluginData;
- pluginData.mDescription = info.metaData.description();
- pluginData.mName = info.metaData.name();
- pluginData.mIdentifier = info.metaData.pluginId();
- pluginData.mEnableByDefault = info.metaData.isEnabledByDefault();
+ const PimCommon::PluginUtilData pluginData = PimCommon::PluginUtil::createPluginMetaData(info.metaData);
mPluginDataList.append(pluginData);
const bool isPluginActivated = PimCommon::PluginUtil::isPluginActivated(pair.first, pair.second, pluginData.mEnableByDefault, pluginData.mIdentifier);