Skip to content

Commit a6fa39d

Browse files
[StaticAnalyzer] Modernize NSErrorMethodChecker (NFC)
1 parent 23915fe commit a6fa39d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/StaticAnalyzer/Checkers/NSErrorChecker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ static bool IsCFError(QualType T, IdentifierInfo *II);
3939
namespace {
4040
class NSErrorMethodChecker
4141
: public Checker< check::ASTDecl<ObjCMethodDecl> > {
42-
mutable IdentifierInfo *II;
42+
mutable IdentifierInfo *II = nullptr;
4343

4444
public:
45-
NSErrorMethodChecker() : II(nullptr) {}
45+
NSErrorMethodChecker() = default;
4646

4747
void checkASTDecl(const ObjCMethodDecl *D,
4848
AnalysisManager &mgr, BugReporter &BR) const;

0 commit comments

Comments
 (0)