Fixed Cppcheck self-check warnings

This commit is contained in:
Daniel Marjamäki 2021-05-09 23:27:53 +02:00
parent 2c24af02c8
commit 040069ab4d
1 changed files with 0 additions and 4 deletions

View File

@ -6151,15 +6151,11 @@ private:
}
void explicitBool1() {
Settings settings;
settings.standards.cpp = Standards::CPP20;
const char code[] = "class Fred { explicit(true) Fred(int); };";
ASSERT_EQUALS("class Fred { explicit Fred ( int ) ; } ;", tok(code));
}
void explicitBool2() {
Settings settings;
settings.standards.cpp = Standards::CPP20;
const char code[] = "class Fred { explicit(false) Fred(int); };";
ASSERT_EQUALS("class Fred { Fred ( int ) ; } ;", tok(code));
}