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

Avoid creating KCModuleInfo

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