From 527dc6f1dcd68d327cc1802f577b4117c20c7cc3 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 24 Feb 2009 03:05:43 +0000 Subject: [PATCH] added virtual ~Solver() in util/Solver to avoid compiler warnings git-svn-id: svn://anubis/fart/trunk@153 7f9b0f55-74a9-4bce-be96-3c2cd072584d --- util/Solver.cc | 4 ++++ util/Solver.h | 1 + 2 files changed, 5 insertions(+) diff --git a/util/Solver.cc b/util/Solver.cc index b6cb565..3a48bc8 100644 --- a/util/Solver.cc +++ b/util/Solver.cc @@ -12,6 +12,10 @@ Solver::Solver(double a, double b, double c, double d, double e) this->e = e; } +Solver::~Solver() +{ +} + /************************************************************************** * LinearSolver methods * diff --git a/util/Solver.h b/util/Solver.h index e409ed2..ad4b666 100644 --- a/util/Solver.h +++ b/util/Solver.h @@ -18,6 +18,7 @@ class Solver double c = 0.0, double d = 0.0, double e = 0.0); + virtual ~Solver(); virtual Result solve() = 0; protected: