FIX: test: parameter 'settings' is always rewritten
This commit is contained in:
parent
d41d091c07
commit
3817384223
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue