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.