Commit 2f6d22db authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

not necessary to create as pointer

parent fce60e5e
Pipeline #73883 passed with stage
in 54 minutes and 56 seconds
...@@ -37,9 +37,8 @@ bool CheckBeforeSendPlugin::hasConfigureDialog() const ...@@ -37,9 +37,8 @@ bool CheckBeforeSendPlugin::hasConfigureDialog() const
void CheckBeforeSendPlugin::showConfigureDialog(QWidget *parent) void CheckBeforeSendPlugin::showConfigureDialog(QWidget *parent)
{ {
QPointer<CheckBeforeSendConfigureDialog> dlg = new CheckBeforeSendConfigureDialog(parent); CheckBeforeSendConfigureDialog dlg(parent);
dlg->exec(); dlg.exec();
delete dlg;
} }
#include "checkbeforesendplugin.moc" #include "checkbeforesendplugin.moc"
...@@ -38,9 +38,8 @@ bool ConfirmAddressPlugin::hasConfigureDialog() const ...@@ -38,9 +38,8 @@ bool ConfirmAddressPlugin::hasConfigureDialog() const
void ConfirmAddressPlugin::showConfigureDialog(QWidget *parent) void ConfirmAddressPlugin::showConfigureDialog(QWidget *parent)
{ {
QPointer<ConfirmAddressConfigureDialog> dlg = new ConfirmAddressConfigureDialog(parent); ConfirmAddressConfigureDialog dlg(parent);
dlg->exec(); dlg.exec();
delete dlg;
} }
#include "confirmaddressplugin.moc" #include "confirmaddressplugin.moc"
...@@ -22,9 +22,8 @@ ExpireAccountTrashFolderConfigPlugin::~ExpireAccountTrashFolderConfigPlugin() ...@@ -22,9 +22,8 @@ ExpireAccountTrashFolderConfigPlugin::~ExpireAccountTrashFolderConfigPlugin()
void ExpireAccountTrashFolderConfigPlugin::showConfigureDialog(QWidget *parent) void ExpireAccountTrashFolderConfigPlugin::showConfigureDialog(QWidget *parent)
{ {
QPointer<ExpireAccountTrashFolderConfigDialog> dlg = new ExpireAccountTrashFolderConfigDialog(parent); ExpireAccountTrashFolderConfigDialog dlg(parent);
dlg->exec(); dlg.exec();
delete dlg;
} }
#include "expireaccounttrashfolderconfigplugin.moc" #include "expireaccounttrashfolderconfigplugin.moc"
...@@ -22,9 +22,8 @@ FolderConfigureSettingsPlugin::~FolderConfigureSettingsPlugin() ...@@ -22,9 +22,8 @@ FolderConfigureSettingsPlugin::~FolderConfigureSettingsPlugin()
void FolderConfigureSettingsPlugin::showConfigureDialog(QWidget *parent) void FolderConfigureSettingsPlugin::showConfigureDialog(QWidget *parent)
{ {
QPointer<FolderConfigureSettingsDialog> dlg = new FolderConfigureSettingsDialog(parent); FolderConfigureSettingsDialog dlg(parent);
dlg->exec(); dlg.exec();
delete dlg;
} }
#include "folderconfiguresettingsplugin.moc" #include "folderconfiguresettingsplugin.moc"
...@@ -21,9 +21,8 @@ GravatarConfigureSettingsPlugin::~GravatarConfigureSettingsPlugin() ...@@ -21,9 +21,8 @@ GravatarConfigureSettingsPlugin::~GravatarConfigureSettingsPlugin()
void GravatarConfigureSettingsPlugin::showConfigureDialog(QWidget *parent) void GravatarConfigureSettingsPlugin::showConfigureDialog(QWidget *parent)
{ {
QPointer<GravatarConfigureSettingsPluginDialog> dlg = new GravatarConfigureSettingsPluginDialog(parent); GravatarConfigureSettingsPluginDialog dlg(parent);
dlg->exec(); dlg.exec();
delete dlg;
} }
#include "gravatarconfiguresettingsplugin.moc" #include "gravatarconfiguresettingsplugin.moc"
...@@ -36,9 +36,8 @@ bool AdblockPluginUrlInterceptor::hasConfigureDialog() const ...@@ -36,9 +36,8 @@ bool AdblockPluginUrlInterceptor::hasConfigureDialog() const
void AdblockPluginUrlInterceptor::showConfigureDialog(QWidget *parent) void AdblockPluginUrlInterceptor::showConfigureDialog(QWidget *parent)
{ {
QPointer<AdBlock::AdblockPluginUrlInterceptorConfigureDialog> dlg = new AdBlock::AdblockPluginUrlInterceptorConfigureDialog(parent); AdBlock::AdblockPluginUrlInterceptorConfigureDialog dlg(parent);
dlg->exec(); dlg.exec();
delete dlg;
} }
#include "adblockpluginurlinterceptor.moc" #include "adblockpluginurlinterceptor.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