]> git.mxchange.org Git - flightgear.git/blobdiff - src/Autopilot/functor.hxx
toggle fullscreen: also adapt GUI plane when resizing
[flightgear.git] / src / Autopilot / functor.hxx
index b68b683c31f0ae91c66763e191edc9ab117589e8..4b1fda6f0a0bf89ee800483f2a36dfe734920097 100644 (file)
@@ -31,12 +31,12 @@ namespace FGXMLAutopilot {
 
 template <class TBase> class FunctorBase {
 public:
+  virtual ~FunctorBase() {}
   virtual TBase * operator()( SGPropertyNode_ptr configNode ) = 0;
 };
 
 template <class TClass,class TBase> class CreateAndConfigureFunctor : 
-  public FunctorBase<TBase>,
-  SGReferenced {
+  public FunctorBase<TBase> {
 public:
   virtual TBase * operator()( SGPropertyNode_ptr configNode ) { 
     TBase * base = new TClass();