FIX: test: parameter 'settings' is always rewritten

This commit is contained in:
uburuntu 2017-05-27 04:16:46 +02:00 committed by Daniel Marjamäki
parent d41d091c07
commit 3817384223
1 changed files with 2 additions and 2 deletions

View File

@ -227,11 +227,11 @@ private:
}
}
void checkP(const char code[], const char *filename = "test.cpp", Settings* settings = 0) {
void checkP(const char code[], const char *filename = "test.cpp") {
// Clear the error buffer..
errout.str("");
settings = &_settings;
Settings* settings = &_settings;
settings->addEnabled("style");
settings->addEnabled("warning");
settings->addEnabled("portability");