X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b04ada921ff729afc57eff8a2d1f07cb32576342..aa738eb8e3471f3f8ecb454b495a10fdd3a62131:/src/common/cmdline.cpp?ds=sidebyside diff --git a/src/common/cmdline.cpp b/src/common/cmdline.cpp index 1ca7d85a4f..12012e6807 100644 --- a/src/common/cmdline.cpp +++ b/src/common/cmdline.cpp @@ -241,8 +241,10 @@ void wxCmdLineParserData::SetArguments(const wxString& cmdLine) { m_arguments.clear(); - m_arguments.push_back( - (wxTheApp && wxTheApp->argc > 0) ? wxTheApp->argv[0] : wxEmptyString); + if(wxTheApp && wxTheApp->argc > 0) + m_arguments.push_back(wxTheApp->argv[0]); + else + m_arguments.push_back(wxEmptyString); wxArrayString args = wxCmdLineParser::ConvertStringToArgs(cmdLine); @@ -1221,4 +1223,3 @@ wxArrayString wxCmdLineParser::ConvertStringToArgs(const wxChar *p) return args; } -