]> git.mxchange.org Git - flightgear.git/commitdiff
make sure node pointers remain valid
authormfranz <mfranz>
Thu, 23 Mar 2006 15:13:19 +0000 (15:13 +0000)
committermfranz <mfranz>
Thu, 23 Mar 2006 15:13:19 +0000 (15:13 +0000)
src/Cockpit/cockpit.hxx
src/Cockpit/panel.hxx

index cd97859b03c96d294c390869a4d26c624dad4da4..b3d7b420eb317abc2f2f194d8d679b88aa26a602 100644 (file)
@@ -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) {};
index 619c2829d9b8ba7756b37cc4bf35eabc818e3d8a..04f7352334a26a48dbe01337b8f5b2905dd42824 100644 (file)
@@ -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;