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:
Mathieu Dupuy 2012-12-14 13:40:48 +01:00 committed by Curtis Gedak
parent 81682eaf29
commit b7393be268
1 changed files with 1 additions and 4 deletions

View File

@ -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 ) ;