Skip to content

Commit

Permalink
[StaticAnalyzer] Modernize DeleteBugVisitor (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Aug 21, 2023
1 parent 760e0c3 commit 848be08
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class DeleteWithNonVirtualDtorChecker

class DeleteBugVisitor : public BugReporterVisitor {
public:
DeleteBugVisitor() : Satisfied(false) {}
DeleteBugVisitor() = default;
void Profile(llvm::FoldingSetNodeID &ID) const override {
static int X = 0;
ID.AddPointer(&X);
Expand All @@ -50,7 +50,7 @@ class DeleteWithNonVirtualDtorChecker
PathSensitiveBugReport &BR) override;

private:
bool Satisfied;
bool Satisfied = false;
};

public:
Expand Down

0 comments on commit 848be08

Please sign in to comment.