Fix compiler warnings

This commit is contained in:
Alexander Mai 2015-03-05 20:49:42 +01:00
parent 8fff48ed7b
commit 21ab4413aa
1 changed files with 9 additions and 9 deletions

View File

@ -706,8 +706,8 @@ private:
" foo[1].x = 123;\n" // <- x should get a variable() pointer " foo[1].x = 123;\n" // <- x should get a variable() pointer
"}"; "}";
Settings settings; Settings localsettings;
Tokenizer tokenizer(&settings, this); Tokenizer tokenizer(&localsettings, this);
std::istringstream istr(code); std::istringstream istr(code);
tokenizer.tokenize(istr, "test.cpp"); tokenizer.tokenize(istr, "test.cpp");
@ -726,8 +726,8 @@ private:
" foo[1][2].x = 123;\n" // <- x should get a variable() pointer " foo[1][2].x = 123;\n" // <- x should get a variable() pointer
"}"; "}";
Settings settings; Settings localsettings;
Tokenizer tokenizer(&settings, this); Tokenizer tokenizer(&localsettings, this);
std::istringstream istr(code); std::istringstream istr(code);
tokenizer.tokenize(istr, "test.cpp"); tokenizer.tokenize(istr, "test.cpp");
@ -746,8 +746,8 @@ private:
" (foo[1]).x = 123;\n" // <- x should get a variable() pointer " (foo[1]).x = 123;\n" // <- x should get a variable() pointer
"}"; "}";
Settings settings; Settings localsettings;
Tokenizer tokenizer(&settings, this); Tokenizer tokenizer(&localsettings, this);
std::istringstream istr(code); std::istringstream istr(code);
tokenizer.tokenize(istr, "test.cpp"); tokenizer.tokenize(istr, "test.cpp");
@ -1321,11 +1321,11 @@ private:
errout.str(""); errout.str("");
// Check.. // Check..
Settings settings; Settings localsettings;
settings.debugwarnings = debug; localsettings.debugwarnings = debug;
// Tokenize.. // Tokenize..
Tokenizer tokenizer(&settings, this); Tokenizer tokenizer(&localsettings, this);
std::istringstream istr(code); std::istringstream istr(code);
tokenizer.tokenize(istr, "test.cpp"); tokenizer.tokenize(istr, "test.cpp");
tokenizer.simplifyTokenList2(); tokenizer.simplifyTokenList2();