1
0
Fork 0

Parenthesised comparison

This commit is contained in:
Tiger Wang 2014-06-23 17:40:51 +01:00
parent dc8817feee
commit 7a23692131
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ bool cFurnaceRecipe::ReadOptionalNumbers(AString::size_type & a_Begin, const ASt
bool cFurnaceRecipe::DoesStringContainOnlyNumbers(const AString & a_String)
{
// TODO: replace this with std::all_of(a_String.begin(), a_String.end(), isdigit)
return a_String.find_first_not_of("0123456789") == AString::npos;
return (a_String.find_first_not_of("0123456789") == AString::npos);
}