Skip to content

Commit fcdecda

Browse files
committed
testtokenlist.cpp: fixed functionConst selfcheck warnings
1 parent a0f67dd commit fcdecda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/testtokenlist.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class TestTokenList : public TestFixture {
4040
}
4141

4242
// inspired by #5895
43-
void testaddtoken1() {
43+
void testaddtoken1() const {
4444
const std::string code = "0x89504e470d0a1a0a";
4545
TokenList tokenlist(&settings);
4646
tokenlist.addtoken(code, 1, 1, false);
@@ -69,7 +69,7 @@ class TestTokenList : public TestFixture {
6969
ASSERT(Token::simpleMatch(tokenlist.front(), "a + + 1 ; 1 + + b ;"));
7070
}
7171

72-
void isKeyword() {
72+
void isKeyword() const {
7373

7474
const char code[] = "for a int delete true";
7575

0 commit comments

Comments
 (0)