@@ -253,9 +253,9 @@ class TestClass : public TestFixture {
253253 void checkCopyCtorAndEqOperator_ (const char code[], const char * file, int line) {
254254 // Clear the error log
255255 errout.str (" " );
256- static const Settings settings = settingsBuilder ().severity (Severity::warning).build ();
256+ Settings settings = settingsBuilder ().severity (Severity::warning).build ();
257257
258- Preprocessor preprocessor (settings, nullptr );
258+ Preprocessor preprocessor (settings);
259259
260260 // Tokenize..
261261 Tokenizer tokenizer (&settings, this , &preprocessor);
@@ -2880,7 +2880,7 @@ class TestClass : public TestFixture {
28802880
28812881#define checkNoMemset (...) checkNoMemset_(__FILE__, __LINE__, __VA_ARGS__)
28822882 void checkNoMemset_ (const char * file, int line, const char code[]) {
2883- static const Settings settings = settingsBuilder ().severity (Severity::warning).severity (Severity::portability).build ();
2883+ Settings settings = settingsBuilder ().severity (Severity::warning).severity (Severity::portability).build ();
28842884 checkNoMemset_ (file, line, code, settings);
28852885 }
28862886
@@ -3144,7 +3144,7 @@ class TestClass : public TestFixture {
31443144 errout.str ());
31453145
31463146 // #1655
3147- static const Settings s = settingsBuilder ().library (" std.cfg" ).build ();
3147+ Settings s = settingsBuilder ().library (" std.cfg" ).build ();
31483148 checkNoMemset (" void f() {\n "
31493149 " char c[] = \" abc\" ;\n "
31503150 " std::string s;\n "
@@ -7192,9 +7192,9 @@ class TestClass : public TestFixture {
71927192 errout.str (" " );
71937193
71947194 // Check..
7195- static const Settings settings = settingsBuilder ().severity (Severity::performance).build ();
7195+ Settings settings = settingsBuilder ().severity (Severity::performance).build ();
71967196
7197- Preprocessor preprocessor (settings, nullptr );
7197+ Preprocessor preprocessor (settings);
71987198
71997199 // Tokenize..
72007200 Tokenizer tokenizer (&settings, this , &preprocessor);
@@ -7873,9 +7873,9 @@ class TestClass : public TestFixture {
78737873 // Clear the error log
78747874 errout.str (" " );
78757875
7876- static const Settings settings = settingsBuilder ().severity (Severity::style).build ();
7876+ Settings settings = settingsBuilder ().severity (Severity::style).build ();
78777877
7878- Preprocessor preprocessor (settings, nullptr );
7878+ Preprocessor preprocessor (settings);
78797879
78807880 // Tokenize..
78817881 Tokenizer tokenizer (&settings, this , &preprocessor);
0 commit comments