]> git.mxchange.org Git - flightgear.git/commitdiff
cleanup
authormfranz <mfranz>
Wed, 2 Nov 2005 13:52:01 +0000 (13:52 +0000)
committermfranz <mfranz>
Wed, 2 Nov 2005 13:52:01 +0000 (13:52 +0000)
src/GUI/dialog.cxx

index f5c27696ec477095717c3fc7f03a0c9e670b1aa0..35e573d91ff12451fc21adaf40f9f31dc1cf478c 100644 (file)
 #include "AirportList.hxx"
 #include "layout.hxx"
 
+////////////////////////////////////////////////////////////////////////
+// Implementation of GUIInfo.
+////////////////////////////////////////////////////////////////////////
+
 /**
  * User data for a GUI object.
  */
@@ -24,7 +28,21 @@ struct GUIInfo
     int key;
 };
 
+GUIInfo::GUIInfo (FGDialog * d)
+    : dialog(d),
+      key(-1)
+{
+}
 
+GUIInfo::~GUIInfo ()
+{
+    for (unsigned int i = 0; i < bindings.size(); i++) {
+        delete bindings[i];
+        bindings[i] = 0;
+    }
+}
+
+\f
 /**
  * Key handler.
  */
@@ -285,26 +303,6 @@ copy_from_pui (puObject * object, SGPropertyNode * node)
 }
 
 
-\f
-////////////////////////////////////////////////////////////////////////
-// Implementation of GUIInfo.
-////////////////////////////////////////////////////////////////////////
-
-GUIInfo::GUIInfo (FGDialog * d)
-    : dialog(d),
-      key(-1)
-{
-}
-
-GUIInfo::~GUIInfo ()
-{
-    for (unsigned int i = 0; i < bindings.size(); i++) {
-        delete bindings[i];
-        bindings[i] = 0;
-    }
-}
-
-
 \f
 ////////////////////////////////////////////////////////////////////////
 // Implementation of FGDialog.