Commit 27d4bcf6 authored by Nicolas Fella's avatar Nicolas Fella

Avoid creating KCModuleInfo

KCModuleProxy takes a KService directly, no need for the intermediate KCModuleInfo.
parent e9742ca5
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "k3bversion.h" #include "k3bversion.h"
#include "k3b_i18n.h" #include "k3b_i18n.h"
#include <KCModuleInfo>
#include <KCModuleProxy> #include <KCModuleProxy>
#include <KPluginInfo> #include <KPluginInfo>
#include <KService> #include <KService>
...@@ -139,8 +138,7 @@ KCModuleProxy* K3b::PluginManager::Private::getModuleProxy( Plugin* plugin ) con ...@@ -139,8 +138,7 @@ KCModuleProxy* K3b::PluginManager::Private::getModuleProxy( Plugin* plugin ) con
{ {
foreach( const KService::Ptr& service, plugin->pluginInfo().kcmServices() ) { foreach( const KService::Ptr& service, plugin->pluginInfo().kcmServices() ) {
if( !service->noDisplay() ) { if( !service->noDisplay() ) {
KCModuleInfo moduleInfo( service ); KCModuleProxy* moduleProxy = new KCModuleProxy( service );
KCModuleProxy* moduleProxy = new KCModuleProxy( moduleInfo );
if( moduleProxy->realModule() ) { if( moduleProxy->realModule() ) {
return moduleProxy; return moduleProxy;
} }
......
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