Travis: Fix Cppcheck warning

This commit is contained in:
Daniel Marjamäki 2019-03-10 12:24:28 +01:00
parent 6a3dd9a185
commit df8cfe2fc6
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ static bool isStringCharLiteral(const std::string &str, char q)
const std::string prefix[5] = { "", "u8", "L", "U", "u" };
for (const std::string & p: prefix) {
if ((str.length() + 1) > p.length() && (str.find(p + q) == 0))
if ((str.length() + 1) > p.length() && (str.compare(0, p.size() + 1, (p + q)) == 0))
return true;
}
return false;