X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInput%2FFGCommonInput.cxx;h=a94537d478a753efa164a3a15589fd0d25d1ba60;hb=11d15b451347674fba77648700d23c5aaec3c6c2;hp=513e9a640297f0694aef7419da1a59cdffa9f6fd;hpb=aea9c750f3f839817f8dcbdd7bc6bb4f81b97836;p=flightgear.git diff --git a/src/Input/FGCommonInput.cxx b/src/Input/FGCommonInput.cxx index 513e9a640..a94537d47 100644 --- a/src/Input/FGCommonInput.cxx +++ b/src/Input/FGCommonInput.cxx @@ -22,15 +22,21 @@ // // $Id$ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "FGCommonInput.hxx" #include
#include
-void FGCommonInput::read_bindings (const SGPropertyNode * node, binding_list_t * binding_list, int modifiers, string & module ) +#include + +void FGCommonInput::read_bindings (const SGPropertyNode * node, binding_list_t * binding_list, int modifiers, const string & module ) { SG_LOG(SG_INPUT, SG_DEBUG, "Reading all bindings"); vector bindings = node->getChildren("binding"); - string nasal = "nasal"; + static string nasal = "nasal"; for (unsigned int i = 0; i < bindings.size(); i++) { const char *cmd = bindings[i]->getStringValue("command"); SG_LOG(SG_INPUT, SG_DEBUG, "Reading binding " << cmd);