Skip to content

Commit acdf1af

Browse files
Update checknullpointer.h
1 parent 3d26fa0 commit acdf1af

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lib/checknullpointer.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ class CPPCHECKLIB CheckNullPointer : public Check {
7373
* @param library --library files data
7474
* @return list of variables that the function reads / writes.
7575
*/
76-
static std::list<const Token*> parseFunctionCall(const Token &tok,
77-
const Library &library, bool checkNullArg = true);
76+
static std::list<const Token*> parseFunctionCall(const Token &tok, const Library &library, bool checkNullArg = true);
7877

7978
/** @brief This constructor is used when running checks. */
8079
CheckNullPointer(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger)
@@ -126,7 +125,9 @@ class CPPCHECKLIB CheckNullPointer : public Check {
126125
void pointerArithmeticError(const Token* tok, const ValueFlow::Value *value, bool inconclusive);
127126
void redundantConditionWarning(const Token* tok, const ValueFlow::Value *value, const Token *condition, bool inconclusive);
128127

129-
bool diag(const Token* tok) { return !mDiag.emplace(tok).second; }
128+
bool diag(const Token* tok) {
129+
return !mDiag.emplace(tok).second;
130+
}
130131

131132
std::set<const Token*> mDiag;
132133
};

0 commit comments

Comments
 (0)