Commit 7bf2c702 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Return directly pointer

parent 33291cee
Pipeline #89769 passed with stage
in 50 minutes and 55 seconds
......@@ -20,8 +20,7 @@ AntiSpamPlugin::~AntiSpamPlugin()
PimCommon::GenericPluginInterface *AntiSpamPlugin::createInterface(QObject *parent)
{
auto interface = new AntiSpamPluginInterface(parent);
return interface;
return new AntiSpamPluginInterface(parent);
}
#include "antispamplugin.moc"
......@@ -21,8 +21,7 @@ AntiVirusPlugin::~AntiVirusPlugin()
PimCommon::GenericPluginInterface *AntiVirusPlugin::createInterface(QObject *parent)
{
auto interface = new AntiVirusPluginInterface(parent);
return interface;
return new AntiVirusPluginInterface(parent);
}
#include "antivirusplugin.moc"
......@@ -21,8 +21,7 @@ ExpertPlugin::~ExpertPlugin()
PimCommon::GenericPluginInterface *ExpertPlugin::createInterface(QObject *parent)
{
auto interface = new ExpertPluginInterface(parent);
return interface;
return new ExpertPluginInterface(parent);
}
#include "expertplugin.moc"
......@@ -21,8 +21,7 @@ LogActivitiesPlugin::~LogActivitiesPlugin()
PimCommon::GenericPluginInterface *LogActivitiesPlugin::createInterface(QObject *parent)
{
auto interface = new LogActivitiesPluginInterface(parent);
return interface;
return new LogActivitiesPluginInterface(parent);
}
#include "logactivitiesplugin.moc"
Supports Markdown
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