diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index ff408b679d..464b36b665 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -468,7 +468,7 @@ bool wxApp::Initialize(int& argc, wxChar **argv) for ( int i = 0; i < argc; i++ ) { // leave just the names of the options with values - const wxString str(wxString(argv[i]).BeforeFirst('=')); + const wxString str = wxString(argv[i]).BeforeFirst('='); for ( size_t j = 0; j < opt.size(); j++ ) {