X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAutopilot%2Ffunctor.hxx;h=7d4f247cb7a4fa7fe414e04423fb9d9b17887cc1;hb=ec2baa1a418b2ba4e45f745ee76d88801feb7e72;hp=4b1fda6f0a0bf89ee800483f2a36dfe734920097;hpb=86e61cfd7817b6cf83640d759fa6b6be8c0f67ca;p=flightgear.git diff --git a/src/Autopilot/functor.hxx b/src/Autopilot/functor.hxx index 4b1fda6f0..7d4f247cb 100644 --- a/src/Autopilot/functor.hxx +++ b/src/Autopilot/functor.hxx @@ -32,15 +32,18 @@ namespace FGXMLAutopilot { template class FunctorBase { public: virtual ~FunctorBase() {} - virtual TBase * operator()( SGPropertyNode_ptr configNode ) = 0; + 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; } };