Commit 9b1cb722 authored by itsyplen's avatar itsyplen

fixed errors in cmdparser

parent 6d3e9251
...@@ -151,7 +151,7 @@ CommandLineParser::CommandLineParser(int argc, const char* argv[], const char* k ...@@ -151,7 +151,7 @@ CommandLineParser::CommandLineParser(int argc, const char* argv[], const char* k
break; break;
} }
if (!hasValueThroughEq && (values_buffer.find('false') == values_buffer.npos) && if (!hasValueThroughEq && (values_buffer.find("false") == values_buffer.npos) &&
((curName == keysVector[0]) || (curName == keysVector[1]))) ((curName == keysVector[0]) || (curName == keysVector[1])))
{ {
...@@ -160,7 +160,7 @@ CommandLineParser::CommandLineParser(int argc, const char* argv[], const char* k ...@@ -160,7 +160,7 @@ CommandLineParser::CommandLineParser(int argc, const char* argv[], const char* k
break; break;
} }
if (!hasValueThroughEq && (values_buffer.find('false') != values_buffer.npos) if (!hasValueThroughEq && (values_buffer.find("false") != values_buffer.npos)
&& ((curName == keysVector[0]) || (curName == keysVector[1]))) && ((curName == keysVector[0]) || (curName == keysVector[1])))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment