X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInput%2FFGDeviceConfigurationMap.cxx;h=5ad2a0bd7435f3786c0049777386bcce6ed52e91;hb=6989f4fb355bf39001aadeb6bee187d5a337b58a;hp=1cd4f1c4d3e07f029422aa9cd709c1494a853cc8;hpb=a6db6d89ff41a619569e6433409e8bf62ff98499;p=flightgear.git diff --git a/src/Input/FGDeviceConfigurationMap.cxx b/src/Input/FGDeviceConfigurationMap.cxx index 1cd4f1c4d..5ad2a0bd7 100644 --- a/src/Input/FGDeviceConfigurationMap.cxx +++ b/src/Input/FGDeviceConfigurationMap.cxx @@ -26,10 +26,17 @@ # include #endif +#include + #include "FGDeviceConfigurationMap.hxx" + +#include + #include #include
+using simgear::PropertyList; + FGDeviceConfigurationMap::FGDeviceConfigurationMap( const char * relative_path, SGPropertyNode_ptr aBase, const char * aChildname ) : base(aBase), childname(aChildname) @@ -40,10 +47,10 @@ FGDeviceConfigurationMap::FGDeviceConfigurationMap( const char * relative_path, int index = 1000; scan_dir( path, &index); - vector childNodes = base->getChildren(childname); + PropertyList childNodes = base->getChildren(childname); for (int k = (int)childNodes.size() - 1; k >= 0; k--) { SGPropertyNode *n = childNodes[k]; - vector names = n->getChildren("name"); + PropertyList names = n->getChildren("name"); if (names.size() ) // && (n->getChildren("axis").size() || n->getChildren("button").size())) for (unsigned int j = 0; j < names.size(); j++) (*this)[names[j]->getStringValue()] = n;