From add06e613d9a6072600e24c824b413f0e884aa4a Mon Sep 17 00:00:00 2001
From: mfranz <mfranz>
Date: Wed, 2 Nov 2005 13:52:01 +0000
Subject: [PATCH] cleanup

---
 src/GUI/dialog.cxx | 38 ++++++++++++++++++--------------------
 1 file changed, 18 insertions(+), 20 deletions(-)

diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx
index f5c27696e..35e573d91 100644
--- a/src/GUI/dialog.cxx
+++ b/src/GUI/dialog.cxx
@@ -11,6 +11,10 @@
 #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;
+    }
+}
+
+
 /**
  * Key handler.
  */
@@ -285,26 +303,6 @@ copy_from_pui (puObject * object, SGPropertyNode * node)
 }
 
 
-
-////////////////////////////////////////////////////////////////////////
-// 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;
-    }
-}
-
-
 
 ////////////////////////////////////////////////////////////////////////
 // Implementation of FGDialog.