don't append spaces to all arguments in ConvertStringToArgs()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1153,7 +1153,7 @@ wxArrayString wxCmdLineParser::ConvertStringToArgs(const wxChar *p)
|
|||||||
{
|
{
|
||||||
switch ( *p )
|
switch ( *p )
|
||||||
{
|
{
|
||||||
case _T('"'):
|
case _T('"'):
|
||||||
if ( !lastBS )
|
if ( !lastBS )
|
||||||
{
|
{
|
||||||
isInsideQuotes = !isInsideQuotes;
|
isInsideQuotes = !isInsideQuotes;
|
||||||
@@ -1178,7 +1178,9 @@ wxArrayString wxCmdLineParser::ConvertStringToArgs(const wxChar *p)
|
|||||||
|
|
||||||
case _T('\0'):
|
case _T('\0'):
|
||||||
endParam = TRUE;
|
endParam = TRUE;
|
||||||
break;
|
|
||||||
|
// exit from the loop directly, without changing arg
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
lastBS = *p == _T('\\');
|
lastBS = *p == _T('\\');
|
||||||
|
Reference in New Issue
Block a user