From e90460a6e1f3c56b7c083ac972621ea9d13c9a9a Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Tue, 29 Apr 2014 21:48:49 -0400 Subject: [PATCH] Fix compiler warning re: TheoryUF destructor. --- src/theory/uf/theory_uf.cpp | 10 ++++++++++ src/theory/uf/theory_uf.h | 10 +--------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/theory/uf/theory_uf.cpp b/src/theory/uf/theory_uf.cpp index 57cf9001b..60f67a425 100644 --- a/src/theory/uf/theory_uf.cpp +++ b/src/theory/uf/theory_uf.cpp @@ -45,6 +45,16 @@ TheoryUF::TheoryUF(context::Context* c, context::UserContext* u, OutputChannel& d_equalityEngine.addFunctionKind(kind::APPLY_UF); } +TheoryUF::~TheoryUF() { + // destruct all ppRewrite() callbacks + for(RegisterPpRewrites::iterator i = d_registeredPpRewrites.begin(); + i != d_registeredPpRewrites.end(); + ++i) { + delete i->second; + } + delete d_thss; +} + void TheoryUF::setMasterEqualityEngine(eq::EqualityEngine* eq) { d_equalityEngine.setMasterEqualityEngine(eq); } diff --git a/src/theory/uf/theory_uf.h b/src/theory/uf/theory_uf.h index 938fc4f67..f06a5ae87 100644 --- a/src/theory/uf/theory_uf.h +++ b/src/theory/uf/theory_uf.h @@ -176,15 +176,7 @@ public: /** Constructs a new instance of TheoryUF w.r.t. the provided context.*/ TheoryUF(context::Context* c, context::UserContext* u, OutputChannel& out, Valuation valuation, const LogicInfo& logicInfo); - ~TheoryUF() { - // destruct all ppRewrite() callbacks - for(RegisterPpRewrites::iterator i = d_registeredPpRewrites.begin(); - i != d_registeredPpRewrites.end(); - ++i) { - delete i->second; - } - delete d_thss; - } + ~TheoryUF(); void setMasterEqualityEngine(eq::EqualityEngine* eq); void finishInit(); -- 2.30.2