Replace Win_GParted::hbox member with local variables

hbox is a very generic name for a member variable and used as a local
variable in two methods.  Change to local variables instead.
This commit is contained in:
Mike Fleetwood 2020-01-03 10:57:20 +00:00 committed by Curtis Gedak
parent f3740c7ac9
commit 25b7382d03
2 changed files with 2 additions and 3 deletions

View file

@ -220,7 +220,6 @@ private:
Gtk::Box vbox_main;
Gtk::Box vbox_info;
Gtk::Box hbox_toolbar;
Gtk::Box *hbox;
Gtk::Toolbar toolbar_main;
Gtk::MenuBar menubar_main;
Gtk::ComboBox combo_devices ;

View file

@ -548,7 +548,7 @@ Gtk::Menu * Win_GParted::create_format_menu()
//Add one entry to the Partition --> Format to --> (file system list) menu
void Win_GParted::create_format_menu_add_item(FSType fstype, bool activate)
{
hbox = manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL));
Gtk::Box *hbox = manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL));
//the colored square
hbox->pack_start(*manage(new Gtk::Image(Utils::get_color_as_pixbuf(fstype, 16, 16))),
Gtk::PACK_SHRINK);
@ -730,7 +730,7 @@ void Win_GParted::refresh_combo_devices()
treerow[ treeview_devices_columns .size ] = "(" + Utils::format_size( devices[ i ] .length, devices[ i ] .sector_size ) + ")" ;
// Devices submenu...
hbox = manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL));
Gtk::Box *hbox = manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL));
hbox ->pack_start( * Utils::mk_label( devices[ i ] .get_path() ), Gtk::PACK_EXPAND_WIDGET ) ;
hbox ->pack_start( * Utils::mk_label( " (" + Utils::format_size( devices[ i ] .length, devices[ i ] .sector_size ) + ")" ),
Gtk::PACK_SHRINK ) ;