From 1aa274e7cb63686e8c3ea87e7d95d464ae29f52c Mon Sep 17 00:00:00 2001 From: mfranz Date: Thu, 23 Mar 2006 15:13:19 +0000 Subject: [PATCH] make sure node pointers remain valid --- src/Cockpit/cockpit.hxx | 2 +- src/Cockpit/panel.hxx | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) 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; + SGPropertyNode_ptr _visibility; + SGPropertyNode_ptr _x_offset; + SGPropertyNode_ptr _y_offset; + SGPropertyNode_ptr _jitter; + SGPropertyNode_ptr _flipx; - const SGPropertyNode * _xsize_node; - const SGPropertyNode * _ysize_node; + 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;