Fixed a few inconclusive warnings regarding const-correctness in cppcheck code base.

This commit is contained in:
Martin Ettl 2015-01-20 16:50:16 +01:00
parent 141a071792
commit fab34a8382
2 changed files with 2 additions and 2 deletions

View File

@ -540,7 +540,7 @@ private:
ASSERT_EQUALS(false, MathLib::isHex(""));
}
void isValidSuffix(void) {
void isValidSuffix(void) const {
// negative testing
std::string value = "ux";
ASSERT_EQUALS(false, MathLib::isValidSuffix(value.begin(), value.end()));

View File

@ -3167,7 +3167,7 @@ private:
}
}
void line2() {
void line2() const {
const char code[] = "#line 8 \"c:\\a.h\"\n"
"123\n";