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[])
KLineal *ruler = new KLineal();
int ret = app.exec();
delete ruler;
return ret;
KLineal ruler;;
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