mirror of
https://gitlab.gnome.org/GNOME/gparted
synced 2024-08-28 20:24:29 +00:00
Argument vector usage improvement (#689689)
Minor change to filling user_devices vector. Closes Bug #689689 - argument vector filling improvement proposal
This commit is contained in:
parent
81682eaf29
commit
b7393be268
|
@ -51,10 +51,7 @@ int main( int argc, char *argv[] )
|
|||
}
|
||||
|
||||
//deal with arguments..
|
||||
std::vector<Glib::ustring> user_devices ;
|
||||
|
||||
for ( int t = 1 ; t < argc ; t++ )
|
||||
user_devices .push_back( argv[ t ] ) ;
|
||||
std::vector<Glib::ustring> user_devices(argv + 1, argv + argc);
|
||||
|
||||
GParted::Win_GParted win_gparted( user_devices ) ;
|
||||
Gtk::Main::run( win_gparted ) ;
|
||||
|
|
Loading…
Reference in a new issue