Correctly use string::npos

CQTexperiment
Chris Moeller 2013-10-26 05:25:14 -07:00
parent 0f4109284a
commit 49326f5492
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ void Bml_Parser::parseDocument( const char * source )
last_indent = *(indents.end() - 1);
indents.pop_back();
size_t colon = current_path.find_last_of( ':' );
if ( colon != ~0 ) current_path.resize( colon );
if ( colon != std::string::npos ) current_path.resize( colon );
else current_path.resize( 0 );
}
last_indent = indent;