]> git.mxchange.org Git - flightgear.git/commitdiff
Abstract AP implementation base classes need a virtual destructor
authorThorstenB <brehmt@gmail.com>
Wed, 25 Apr 2012 21:11:45 +0000 (23:11 +0200)
committerThorstenB <brehmt@gmail.com>
Wed, 25 Apr 2012 21:11:45 +0000 (23:11 +0200)
(SGReferenced doesn't provide it)

src/Autopilot/digitalfilter.cxx
src/Autopilot/flipflop.hxx

index d3b55cb4d3b41ca599c7fdd93e20e8f017597e25..26377e13141b289635ca871e4103579e0b5c66fb 100644 (file)
@@ -40,6 +40,7 @@ class DigitalFilterImplementation : public SGReferenced {
 protected:
   virtual bool configure( const std::string & nodeName, SGPropertyNode_ptr configNode) = 0;
 public:
+  virtual ~DigitalFilterImplementation() {}
   DigitalFilterImplementation();
   virtual void   initialize( double output ) {}
   virtual double compute( double dt, double input ) = 0;
index dfdb38252d031c82033b2510f37aa9a3618800e9..e81c551a162c24173cfe9ec4d2f7e964dc6aff1f 100644 (file)
@@ -38,6 +38,7 @@ protected:
   */
   virtual bool configure( const std::string & nodeName, SGPropertyNode_ptr configNode ) { return false; }
 public:
+  virtual ~FlipFlopImplementation() {}
   /**
    * @brief evaluates the output state from the input lines
    * @param dt the elapsed time in seconds from since the last call