]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/FGButton.cxx
Fixed minor memory leak on joystick reload.
[flightgear.git] / src / Input / FGButton.cxx
index ee5953aca5ca83488849e64aef80b9bcb73a3564..63a679d79e02f74cd3b7919af1617c69d6a1cb24 100644 (file)
 //
 // $Id$
 
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
 #include "FGButton.hxx"
 
+#include <simgear/math/SGMath.hxx>
+
 FGButton::FGButton ()
   : is_repeatable(false),
     interval_sec(0),
@@ -39,7 +45,7 @@ FGButton::~FGButton ()
 }
 
 
-void FGButton::init( const SGPropertyNode * node, const string name, string & module )
+void FGButton::init( const SGPropertyNode * node, const std::string name, std::string & module )
 {
   if (node == 0) {
     SG_LOG(SG_INPUT, SG_DEBUG, "No bindings for button " << name);