From: Morgan Deters Date: Wed, 30 Apr 2014 01:48:49 +0000 (-0400) Subject: Fix compiler warning re: TheoryUF destructor. X-Git-Tag: cvc5-1.0.0~6942 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e90460a6e1f3c56b7c083ac972621ea9d13c9a9a;p=cvc5.git Fix compiler warning re: TheoryUF destructor. --- 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();