]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/FGCommonInput.cxx
Document that property write-protection is not a security measure
[flightgear.git] / src / Input / FGCommonInput.cxx
index 513e9a640297f0694aef7419da1a59cdffa9f6fd..dc8b1a18ea207cb8e1aa02dd5834432004b4e2bc 100644 (file)
 //
 // $Id$
 
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
 #include "FGCommonInput.hxx"
 #include <Main/globals.hxx>
 #include <Main/fg_os.hxx>
 
-void FGCommonInput::read_bindings (const SGPropertyNode * node, binding_list_t * binding_list, int modifiers, string & module )
+using simgear::PropertyList;
+using std::string;
+
+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<SGPropertyNode_ptr> bindings = node->getChildren("binding");
-  string nasal = "nasal";
+  PropertyList bindings = node->getChildren("binding");
+  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);
     if (nasal.compare(cmd) == 0 && !module.empty())
       bindings[i]->setStringValue("module", module.c_str());
     binding_list[modifiers].push_back(new SGBinding(bindings[i], globals->get_props()));