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..
|
//deal with arguments..
|
||||||
std::vector<Glib::ustring> user_devices ;
|
std::vector<Glib::ustring> user_devices(argv + 1, argv + argc);
|
||||||
|
|
||||||
for ( int t = 1 ; t < argc ; t++ )
|
|
||||||
user_devices .push_back( argv[ t ] ) ;
|
|
||||||
|
|
||||||
GParted::Win_GParted win_gparted( user_devices ) ;
|
GParted::Win_GParted win_gparted( user_devices ) ;
|
||||||
Gtk::Main::run( win_gparted ) ;
|
Gtk::Main::run( win_gparted ) ;
|
||||||
|
|
Loading…
Reference in New Issue