Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
KRuler
Commits
11f449b5
Verified
Commit
11f449b5
authored
Sep 29, 2021
by
ivan tkachenko
Browse files
Improve main(): Prefer RAII to manual new/delete
parent
508ed77f
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.cpp
View file @
11f449b5
...
...
@@ -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
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment