From: Morgan Deters Date: Wed, 13 Nov 2013 23:20:17 +0000 (-0500) Subject: Add virtual destructors where missing X-Git-Tag: cvc5-1.0.0~7254 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8088cf4f9c8fdd49e2f46656243efb6afce3cbc8;p=cvc5.git Add virtual destructors where missing --- diff --git a/src/proof/sat_proof.h b/src/proof/sat_proof.h index 362a9fb90..e7e8f65b6 100644 --- a/src/proof/sat_proof.h +++ b/src/proof/sat_proof.h @@ -137,6 +137,7 @@ protected: bool d_storedUnitConflict; public: SatProof(::Minisat::Solver* solver, bool checkRes = false); + virtual ~SatProof() {} protected: void print(ClauseId id); void printRes(ClauseId id); diff --git a/src/proof/theory_proof.h b/src/proof/theory_proof.h index 773428633..b8963c500 100644 --- a/src/proof/theory_proof.h +++ b/src/proof/theory_proof.h @@ -28,9 +28,9 @@ namespace CVC4 { - typedef __gnu_cxx::hash_set SortSet; typedef __gnu_cxx::hash_set ExprSet; + class TheoryProof { protected: ExprSet d_termDeclarations; @@ -40,6 +40,7 @@ namespace CVC4 { void addDeclaration(Expr atom); public: TheoryProof(); + virtual ~TheoryProof() {} virtual void printAssertions(std::ostream& os, std::ostream& paren) = 0; }; @@ -51,4 +52,5 @@ namespace CVC4 { virtual void printAssertions(std::ostream& os, std::ostream& paren); }; } /* CVC4 namespace */ + #endif /* __CVC4__THEORY_PROOF_H */