Verified Commit 11f449b5 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

Improve main(): Prefer RAII to manual new/delete

parent 508ed77f
......@@ -41,10 +41,7 @@ int main(int argc, char *argv[])
parser.process(app);
aboutData.processCommandLine(&parser);
KLineal *ruler = new KLineal();
ruler->show();
int ret = app.exec();
delete ruler;
return ret;
KLineal ruler;
ruler.show();
return app.exec();
}
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