Fix compiler warning re: TheoryUF destructor.
authorMorgan Deters <mdeters@cs.nyu.edu>
Wed, 30 Apr 2014 01:48:49 +0000 (21:48 -0400)
committerMorgan Deters <mdeters@cs.nyu.edu>
Wed, 30 Apr 2014 01:51:32 +0000 (21:51 -0400)
src/theory/uf/theory_uf.cpp
src/theory/uf/theory_uf.h

index 57cf9001b4e82dac4b1aaf7db470c6cee84c9779..60f67a425c02fee2782f3efeb0047cf5e31d11b7 100644 (file)
@@ -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);
 }
index 938fc4f6731c1e020c9e092504fcd14da9d162b3..f06a5ae874ffadaee0e50257da33ed216f3329f3 100644 (file)
@@ -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();