Commit 492c0ad7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Create on stack

parent c3562c46
Pipeline #193149 passed with stage
in 5 minutes and 32 seconds
......@@ -22,8 +22,7 @@ int main(int argc, char **argv)
KSieveUi::SieveImapInstanceInterfaceManager::self()->setSieveImapInstanceInterface(new KMailSieveImapInstanceInterface);
KMSieveImapPasswordProvider provider(nullptr);
auto dlg = new KSieveUi::SieveDebugDialog(&provider);
dlg->exec();
delete dlg;
auto dlg = KSieveUi::SieveDebugDialog(&provider);
dlg.exec();
return 0;
}
......@@ -18,7 +18,7 @@ int main(int argc, char **argv)
KSieveUi::SieveImapInstanceInterfaceManager::self()->setSieveImapInstanceInterface(new KMailSieveImapInstanceInterface);
KMSieveImapPasswordProvider provider(nullptr);
auto dlg = new KSieveUi::ManageSieveScriptsDialog(&provider);
dlg->show();
auto dlg = KSieveUi::ManageSieveScriptsDialog(&provider);
dlg.show();
return app.exec();
}
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