Skip to content

Commit 2baf2d7

Browse files
committed
Rename BAILOUT to Bailout
1 parent 97de2ca commit 2baf2d7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/checkclass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1872,7 +1872,7 @@ CheckClass::Bool CheckClass::isInverted(const Token *tok, const Token *rhs)
18721872
|| (Token::simpleMatch(itr->astOperand2(), "this") && Token::simpleMatch(itr->astOperand1(), "&") && Token::simpleMatch(itr->astOperand1()->next(), rhs->str().c_str(), rhs->str().size())))) {
18731873
//Do nothing
18741874
} else {
1875-
return Bool::BAILOUT;
1875+
return Bool::Bailout;
18761876
}
18771877
}
18781878
if (res)
@@ -1885,7 +1885,7 @@ const Token * CheckClass::getIfStmtBodyStart(const Token *tok, const Token *rhs)
18851885
const Token *top = tok->astTop();
18861886
if (Token::simpleMatch(top->link(), ") {")) {
18871887
switch (isInverted(tok->astParent(), rhs)) {
1888-
case Bool::BAILOUT:
1888+
case Bool::Bailout:
18891889
return nullptr;
18901890
case Bool::True:
18911891
return top->link()->next();

lib/checkclass.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ class CPPCHECKLIB CheckClass : public Check {
228228
bool hasAllocation(const Function *func, const Scope* scope, const Token *start, const Token *end) const;
229229
bool hasAllocationInIfScope(const Function *func, const Scope* scope, const Token *ifStatementScopeStart) const;
230230
static bool hasAssignSelf(const Function *func, const Token *rhs, const Token *&out_ifStatementScopeStart);
231-
enum class Bool : std::uint8_t { True, False, BAILOUT };
231+
enum class Bool : std::uint8_t { True, False, Bailout };
232232
static Bool isInverted(const Token *tok, const Token *rhs);
233233
static const Token * getIfStmtBodyStart(const Token *tok, const Token *rhs);
234234

0 commit comments

Comments
 (0)