Merge pull request #7946 from SSteve:master

pull/7947/head
Alexander Alekhin 8 years ago
commit 3153450756
  1. 2
      modules/core/src/command_line_parser.cpp

@ -10,7 +10,7 @@ static const char* noneValue = "<none>";
static String cat_string(const String& str) static String cat_string(const String& str)
{ {
int left = 0, right = (int)str.length(); int left = 0, right = (int)str.length();
while( left <= right && str[left] == ' ' ) while( left < right && str[left] == ' ' )
left++; left++;
while( right > left && str[right-1] == ' ' ) while( right > left && str[right-1] == ' ' )
right--; right--;

Loading…
Cancel
Save