From: mfranz Date: Thu, 23 Mar 2006 15:13:19 +0000 (+0000) Subject: make sure node pointers remain valid X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1aa274e7cb63686e8c3ea87e7d95d464ae29f52c;p=flightgear.git make sure node pointers remain valid --- diff --git a/src/Cockpit/cockpit.hxx b/src/Cockpit/cockpit.hxx index cd97859b0..b3d7b420e 100644 --- a/src/Cockpit/cockpit.hxx +++ b/src/Cockpit/cockpit.hxx @@ -41,7 +41,7 @@ class fg_Cockpit { private: int Code; int cockpitStatus; - SGPropertyNode * hud_status; + SGPropertyNode_ptr hud_status; public: fg_Cockpit () : Code(1), cockpitStatus(0) {}; diff --git a/src/Cockpit/panel.hxx b/src/Cockpit/panel.hxx index 619c2829d..04f735233 100644 --- a/src/Cockpit/panel.hxx +++ b/src/Cockpit/panel.hxx @@ -199,14 +199,14 @@ private: int _height; int _view_height; - SGPropertyNode * _visibility; - SGPropertyNode * _x_offset; - SGPropertyNode * _y_offset; - SGPropertyNode * _jitter; - SGPropertyNode * _flipx; - - const SGPropertyNode * _xsize_node; - const SGPropertyNode * _ysize_node; + SGPropertyNode_ptr _visibility; + SGPropertyNode_ptr _x_offset; + SGPropertyNode_ptr _y_offset; + SGPropertyNode_ptr _jitter; + SGPropertyNode_ptr _flipx; + + SGConstPropertyNode_ptr _xsize_node; + SGConstPropertyNode_ptr _ysize_node; ssgTexture * _bg; ssgTexture * _mbg[8]; @@ -303,7 +303,7 @@ public: virtual ~FGPanelTransformation (); Type type; - const SGPropertyNode * node; + SGConstPropertyNode_ptr node; float min; float max; bool has_mod; @@ -529,7 +529,7 @@ public: private: ChunkType _type; string _text; - const SGPropertyNode * _node; + SGConstPropertyNode_ptr _node; string _fmt; float _mult; float _offs;