Skip to content

Commit 760e0c3

Browse files
[StaticAnalyzer] Modernize CFNumberChecker (NFC)
1 parent 9b987e0 commit 760e0c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,9 +352,9 @@ void NilArgChecker::checkPostStmt(const ObjCDictionaryLiteral *DL,
352352
namespace {
353353
class CFNumberChecker : public Checker< check::PreStmt<CallExpr> > {
354354
mutable std::unique_ptr<APIMisuse> BT;
355-
mutable IdentifierInfo *ICreate, *IGetValue;
355+
mutable IdentifierInfo *ICreate = nullptr, *IGetValue = nullptr;
356356
public:
357-
CFNumberChecker() : ICreate(nullptr), IGetValue(nullptr) {}
357+
CFNumberChecker() = default;
358358

359359
void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
360360
};

0 commit comments

Comments
 (0)