Simplify the code

Simplify the code as @SpecLad suggested.
pull/2098/head
pxli168 11 years ago
parent 203a9acdbc
commit 70d462b352
  1. 3
      modules/core/src/command_line_parser.cpp

@ -65,8 +65,7 @@ static void from_str(const String& str, int type, void* dst)
{
std::string temp;
ss >> temp;
if( !temp.compare("true") ) *(bool*)dst = true;
else *(bool*)dst = false;
*(bool*) = temp == "true";
}
else if( type == Param::UNSIGNED_INT )
ss >> *(unsigned*)dst;

Loading…
Cancel
Save