Skip to content

Commit 6147dfa

Browse files
committed
testtokenlist.cpp: fixed functionConst selfcheck warnings
1 parent 29a72e7 commit 6147dfa

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
@@ -39,7 +39,7 @@ class TestTokenList : public TestFixture {
3939
}
4040

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

71-
void isKeyword() {
71+
void isKeyword() const {
7272

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

0 commit comments

Comments
 (0)