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

Create on stack directly

parent b9a652a1
Pipeline #193125 passed with stage
in 5 minutes and 21 seconds
......@@ -150,9 +150,8 @@ int main(int argc, char *argv[])
#ifdef WITH_KUSERFEEDBACK
if (cmdArgs->isSet(QStringLiteral("feedback"))) {
auto userFeedback = new KMailUserFeedbackProvider(nullptr);
QTextStream(stdout) << userFeedback->describeDataSources() << '\n';
delete userFeedback;
KMailUserFeedbackProvider userFeedback(nullptr);
QTextStream(stdout) << userFeedback.describeDataSources() << '\n';
return 0;
}
#endif
......
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