Skip to content

Commit bfa8c6f

Browse files
committed
Fixed cppcheck warning and corrected checkHeaders test
1 parent 7e8839a commit bfa8c6f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/testtokenize.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8625,7 +8625,7 @@ class TestTokenizer : public TestFixture {
86258625
preprocessor.setDirectives(tokens1);
86268626

86278627
// Tokenizer..
8628-
Tokenizer tokenizer(&settings0, this);
8628+
Tokenizer tokenizer(&settings, this);
86298629
tokenizer.createTokens(std::move(tokens2));
86308630
tokenizer.simplifyTokens1("");
86318631

@@ -8652,9 +8652,9 @@ class TestTokenizer : public TestFixture {
86528652
ASSERT_EQUALS("\n\n##file 1\n"
86538653
"1: struct A {\n"
86548654
"2: int a ; a = 1 ;\n"
8655-
"3: void f ( ) { g<int> ( 1 ) ; }\n"
8656-
"4: void g<int> ( int x ) ;\n"
8657-
"5: } ; void A :: g<int> ( int x ) { a = 2 ; }\n",
8655+
"3: void f ( ) ;\n"
8656+
"4:\n"
8657+
"5: } ;\n",
86588658
checkHeaders(code, false));
86598659
}
86608660
};

0 commit comments

Comments
 (0)