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