From cab0dc12a16bf15ed7bc4c71491f9ec999b10c22 Mon Sep 17 00:00:00 2001 From: James Turner Date: Fri, 19 Feb 2021 16:28:35 +0000 Subject: [PATCH] Remove a lingering Boost usage --- src/Canvas/canvas_mgr.cxx | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/src/Canvas/canvas_mgr.cxx b/src/Canvas/canvas_mgr.cxx index 096751aab..b0f747cca 100644 --- a/src/Canvas/canvas_mgr.cxx +++ b/src/Canvas/canvas_mgr.cxx @@ -18,8 +18,6 @@ #include "canvas_mgr.hxx" -#include - #include #include
#include @@ -79,17 +77,13 @@ void CanvasMgr::init() // add our two placement factories sc::Canvas::addPlacementFactory ( - "object", - boost::bind - ( - &FGODGauge::set_aircraft_texture, - _1, - boost::bind(&sc::Canvas::getTexture, _2), - boost::bind(&sc::Canvas::getCullCallback, _2), - _2 - ) - ); - + "object", [](SGPropertyNode* placement, sc::CanvasPtr canvas) { + return FGODGauge::set_aircraft_texture(placement, + canvas->getTexture(), + canvas->getCullCallback(), + canvas); + }); + sc::Canvas::addPlacementFactory("scenery-object", &addSceneObjectPlacement); } }