Fixed a few inconclusive warnings regarding const-correctness in cppcheck code base.
This commit is contained in:
parent
141a071792
commit
fab34a8382
|
@ -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()));
|
||||
|
|
|
@ -3167,7 +3167,7 @@ private:
|
|||
}
|
||||
}
|
||||
|
||||
void line2() {
|
||||
void line2() const {
|
||||
const char code[] = "#line 8 \"c:\\a.h\"\n"
|
||||
"123\n";
|
||||
|
||||
|
|
Loading…
Reference in New Issue