@@ -259,9 +259,9 @@ class TestClass : public TestFixture {
259259 void checkCopyCtorAndEqOperator_ (const char code[], const char * file, int line) {
260260 // Clear the error log
261261 errout.str (" " );
262- static const Settings settings = settingsBuilder ().severity (Severity::warning).build ();
262+ Settings settings = settingsBuilder ().severity (Severity::warning).build ();
263263
264- Preprocessor preprocessor (settings, settings.nomsg , nullptr );
264+ Preprocessor preprocessor (settings, settings.nomsg );
265265
266266 // Tokenize..
267267 Tokenizer tokenizer (&settings, this , &preprocessor);
@@ -2886,7 +2886,7 @@ class TestClass : public TestFixture {
28862886
28872887#define checkNoMemset (...) checkNoMemset_(__FILE__, __LINE__, __VA_ARGS__)
28882888 void checkNoMemset_ (const char * file, int line, const char code[]) {
2889- static const Settings settings = settingsBuilder ().severity (Severity::warning).severity (Severity::portability).build ();
2889+ Settings settings = settingsBuilder ().severity (Severity::warning).severity (Severity::portability).build ();
28902890 checkNoMemset_ (file, line, code, settings);
28912891 }
28922892
@@ -3150,7 +3150,7 @@ class TestClass : public TestFixture {
31503150 errout.str ());
31513151
31523152 // #1655
3153- static const Settings s = settingsBuilder ().library (" std.cfg" ).build ();
3153+ Settings s = settingsBuilder ().library (" std.cfg" ).build ();
31543154 checkNoMemset (" void f() {\n "
31553155 " char c[] = \" abc\" ;\n "
31563156 " std::string s;\n "
@@ -7279,9 +7279,9 @@ class TestClass : public TestFixture {
72797279 errout.str (" " );
72807280
72817281 // Check..
7282- static const Settings settings = settingsBuilder ().severity (Severity::performance).build ();
7282+ Settings settings = settingsBuilder ().severity (Severity::performance).build ();
72837283
7284- Preprocessor preprocessor (settings, settings.nomsg , nullptr );
7284+ Preprocessor preprocessor (settings, settings.nomsg );
72857285
72867286 // Tokenize..
72877287 Tokenizer tokenizer (&settings, this , &preprocessor);
@@ -7960,9 +7960,9 @@ class TestClass : public TestFixture {
79607960 // Clear the error log
79617961 errout.str (" " );
79627962
7963- static const Settings settings = settingsBuilder ().severity (Severity::style).build ();
7963+ Settings settings = settingsBuilder ().severity (Severity::style).build ();
79647964
7965- Preprocessor preprocessor (settings, settings.nomsg , nullptr );
7965+ Preprocessor preprocessor (settings, settings.nomsg );
79667966
79677967 // Tokenize..
79687968 Tokenizer tokenizer (&settings, this , &preprocessor);
0 commit comments