X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAutopilot%2Ffunctor.hxx;h=7d4f247cb7a4fa7fe414e04423fb9d9b17887cc1;hb=ec2baa1a418b2ba4e45f745ee76d88801feb7e72;hp=2f1ac36dfa2f18d8276248cc8f26fca09a184ba3;hpb=c6062ad93cf3bfbffb6dec63cd6844167bb56980;p=flightgear.git diff --git a/src/Autopilot/functor.hxx b/src/Autopilot/functor.hxx index 2f1ac36df..7d4f247cb 100644 --- a/src/Autopilot/functor.hxx +++ b/src/Autopilot/functor.hxx @@ -31,15 +31,19 @@ namespace FGXMLAutopilot { template class FunctorBase { public: - virtual TBase * operator()( SGPropertyNode_ptr configNode ) = 0; + virtual ~FunctorBase() {} + virtual TBase * operator()( SGPropertyNode& prop_root, + SGPropertyNode& cfg ) = 0; }; template class CreateAndConfigureFunctor : public FunctorBase { public: - virtual TBase * operator()( SGPropertyNode_ptr configNode ) { + virtual TBase * operator()( SGPropertyNode& prop_root, + SGPropertyNode& cfg ) + { TBase * base = new TClass(); - base->configure( configNode ); + base->configure(prop_root, cfg); return base; } };