Skip to content

Commit 848be08

Browse files
[StaticAnalyzer] Modernize DeleteBugVisitor (NFC)
1 parent 760e0c3 commit 848be08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/StaticAnalyzer/Checkers/DeleteWithNonVirtualDtorChecker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class DeleteWithNonVirtualDtorChecker
4040

4141
class DeleteBugVisitor : public BugReporterVisitor {
4242
public:
43-
DeleteBugVisitor() : Satisfied(false) {}
43+
DeleteBugVisitor() = default;
4444
void Profile(llvm::FoldingSetNodeID &ID) const override {
4545
static int X = 0;
4646
ID.AddPointer(&X);
@@ -50,7 +50,7 @@ class DeleteWithNonVirtualDtorChecker
5050
PathSensitiveBugReport &BR) override;
5151

5252
private:
53-
bool Satisfied;
53+
bool Satisfied = false;
5454
};
5555

5656
public:

0 commit comments

Comments
 (0)