Commit e689b20b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Return directly pointer

parent e3a34147
Pipeline #89645 passed with stage
in 51 minutes and 38 seconds
......@@ -19,8 +19,7 @@ CSVImportExportPlugin::~CSVImportExportPlugin() = default;
PimCommon::AbstractGenericPluginInterface *CSVImportExportPlugin::createInterface(QObject *parent)
{
auto interface = new CSVImportExportPluginInterface(parent);
return interface;
return new CSVImportExportPluginInterface(parent);
}
bool CSVImportExportPlugin::hasPopupMenuSupport() const
......
......@@ -19,8 +19,7 @@ GMXImportExportPlugin::~GMXImportExportPlugin() = default;
PimCommon::AbstractGenericPluginInterface *GMXImportExportPlugin::createInterface(QObject *parent)
{
auto interface = new GMXImportExportPluginInterface(parent);
return interface;
return new GMXImportExportPluginInterface(parent);
}
bool GMXImportExportPlugin::hasPopupMenuSupport() const
......
......@@ -19,8 +19,7 @@ LDapImportExportPlugin::~LDapImportExportPlugin() = default;
PimCommon::AbstractGenericPluginInterface *LDapImportExportPlugin::createInterface(QObject *parent)
{
auto interface = new LDapImportExportPluginInterface(parent);
return interface;
return new LDapImportExportPluginInterface(parent);
}
bool LDapImportExportPlugin::hasPopupMenuSupport() const
......
......@@ -19,8 +19,7 @@ LDifImportExportPlugin::~LDifImportExportPlugin() = default;
PimCommon::AbstractGenericPluginInterface *LDifImportExportPlugin::createInterface(QObject *parent)
{
auto interface = new LDifImportExportPluginInterface(parent);
return interface;
return new LDifImportExportPluginInterface(parent);
}
bool LDifImportExportPlugin::hasPopupMenuSupport() const
......
......@@ -18,8 +18,7 @@ VCardImportExportPlugin::~VCardImportExportPlugin() = default;
PimCommon::AbstractGenericPluginInterface *VCardImportExportPlugin::createInterface(QObject *parent)
{
auto interface = new VCardImportExportPluginInterface(parent);
return interface;
return new VCardImportExportPluginInterface(parent);
}
bool VCardImportExportPlugin::hasPopupMenuSupport() const
......
......@@ -20,8 +20,7 @@ WindowsContactImportExportPlugin::~WindowsContactImportExportPlugin() = default;
PimCommon::AbstractGenericPluginInterface *WindowsContactImportExportPlugin::createInterface(QObject *parent)
{
auto interface = new WindowsContactImportExportPluginInterface(parent);
return interface;
return new WindowsContactImportExportPluginInterface(parent);
}
bool WindowsContactImportExportPlugin::hasPopupMenuSupport() const
......
......@@ -21,8 +21,7 @@ CheckGravatarPlugin::~CheckGravatarPlugin()
PimCommon::GenericPluginInterface *CheckGravatarPlugin::createInterface(QObject *parent)
{
auto interface = new CheckGravatarPluginInterface(parent);
return interface;
return new CheckGravatarPluginInterface(parent);
}
bool CheckGravatarPlugin::hasPopupMenuSupport() const
......
......@@ -21,8 +21,7 @@ MergeContactsPlugin::~MergeContactsPlugin()
PimCommon::GenericPluginInterface *MergeContactsPlugin::createInterface(QObject *parent)
{
auto interface = new MergeContactsPluginInterface(parent);
return interface;
return new MergeContactsPluginInterface(parent);
}
#include "mergecontactsplugin.moc"
......@@ -21,8 +21,7 @@ SearchDuplicatesPlugin::~SearchDuplicatesPlugin()
PimCommon::GenericPluginInterface *SearchDuplicatesPlugin::createInterface(QObject *parent)
{
auto interface = new SearchDuplicatesPluginInterface(parent);
return interface;
return new SearchDuplicatesPluginInterface(parent);
}
#include "searchduplicatesplugin.moc"
......@@ -21,8 +21,7 @@ SendMailPlugin::~SendMailPlugin()
PimCommon::GenericPluginInterface *SendMailPlugin::createInterface(QObject *parent)
{
auto interface = new SendMailPluginInterface(parent);
return interface;
return new SendMailPluginInterface(parent);
}
bool SendMailPlugin::hasPopupMenuSupport() const
......
......@@ -21,8 +21,7 @@ SendVcardsPlugin::~SendVcardsPlugin()
PimCommon::GenericPluginInterface *SendVcardsPlugin::createInterface(QObject *parent)
{
auto interface = new SendVcardsPluginInterface(parent);
return interface;
return new SendVcardsPluginInterface(parent);
}
bool SendVcardsPlugin::hasPopupMenuSupport() const
......
......@@ -22,8 +22,7 @@ ExternalComposerPluginEditor::~ExternalComposerPluginEditor()
MessageComposer::PluginEditorInitInterface *ExternalComposerPluginEditor::createInterface(QObject *parent)
{
auto interface = new ExternalComposerPluginEditorInterface(parent);
return interface;
return new ExternalComposerPluginEditorInterface(parent);
}
bool ExternalComposerPluginEditor::hasConfigureDialog() const
......
......@@ -21,8 +21,7 @@ AutoCorrectionPluginEditor::~AutoCorrectionPluginEditor()
MessageComposer::PluginEditorInterface *AutoCorrectionPluginEditor::createInterface(QObject *parent)
{
auto interface = new AutoCorrectionPluginEditorInterface(parent);
return interface;
return new AutoCorrectionPluginEditorInterface(parent);
}
#include "autocorrectionplugineditor.moc"
......@@ -26,8 +26,7 @@ bool ChangeCasePluginEditor::hasPopupMenuSupport() const
MessageComposer::PluginEditorInterface *ChangeCasePluginEditor::createInterface(QObject *parent)
{
auto interface = new ChangeCasePluginEditorInterface(parent);
return interface;
return new ChangeCasePluginEditorInterface(parent);
}
#include "changecaseplugineditor.moc"
......@@ -21,8 +21,7 @@ InsertEmailPluginEditor::~InsertEmailPluginEditor()
MessageComposer::PluginEditorInterface *InsertEmailPluginEditor::createInterface(QObject *parent)
{
auto interface = new InsertEmailPluginEditorInterface(parent);
return interface;
return new InsertEmailPluginEditorInterface(parent);
}
#include "insertemailplugineditor.moc"
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