mirror of
https://gitlab.gnome.org/GNOME/gparted
synced 2024-09-13 21:21:12 +00:00
Initialise local POD 'launched' variable in show_help()
'launched' local POD (Plain Old Data) variable was left uninitialised, but was set in both the try and catch clauses. Best practice is to initialise when defined, so do that instead. Cosmetic change.
This commit is contained in:
parent
f5e870d6c4
commit
8effaf4f22
|
@ -1795,7 +1795,7 @@ void Win_GParted::show_help(const Glib::ustring & filename /* E.g., "gparted" */
|
|||
|
||||
context->set_timestamp(gtk_get_current_event_time());
|
||||
|
||||
bool launched;
|
||||
bool launched = false;
|
||||
Glib::ustring error2_msg;
|
||||
try
|
||||
{
|
||||
|
@ -1804,7 +1804,6 @@ void Win_GParted::show_help(const Glib::ustring & filename /* E.g., "gparted" */
|
|||
catch (Glib::Error& e)
|
||||
{
|
||||
error2_msg = e.what();
|
||||
launched = false;
|
||||
}
|
||||
|
||||
if (!launched)
|
||||
|
|
Loading…
Reference in a new issue