]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/httpd.cxx
Updated adf property names.
[flightgear.git] / src / Network / httpd.cxx
index 5cc4219262bb69ab99500da86d0c3cfe71e02550..97ab9b5d4b768d158a644110a0ca96d6206362df 100644 (file)
@@ -97,7 +97,7 @@ void HttpdChannel::foundTerminator (void) {
         string request;
         string tmp;
 
-        unsigned int pos = rest.find( " " );
+        string::size_type pos = rest.find( " " );
         if ( pos != string::npos ) {
             request = rest.substr( 0, pos );
         } else {
@@ -127,13 +127,13 @@ void HttpdChannel::foundTerminator (void) {
                 }
 
                 printf("  arg = %s\n", arg.c_str() );
-                unsigned int apos = arg.find("=");
+                string::size_type apos = arg.find("=");
                 if ( apos != string::npos ) {
                     string a = arg.substr( 0, apos );
                     string b = arg.substr( apos + 1 );
                     printf("    a = %s  b = %s\n", a.c_str(), b.c_str() );
                     if ( a == "value" ) {
-                        fgSetString( request, urlDecode(b) );
+                        fgSetString( request.c_str(), urlDecode(b).c_str() );
                     } 
                 }
             }
@@ -141,7 +141,7 @@ void HttpdChannel::foundTerminator (void) {
             request = urlDecode(request);
        }
 
-        node = globals->get_props()->getNode(request);
+        node = globals->get_props()->getNode(request.c_str());
 
         string response = "";
         response += "<HTML LANG=\"en\">";
@@ -179,7 +179,7 @@ void HttpdChannel::foundTerminator (void) {
             for (int i = 0; i < node->nChildren(); i++) {
                 SGPropertyNode *child = node->getChild(i);
                 string name = child->getName();
-                if ( node->getChild(name, 1) ) {
+                if ( node->getChild(name.c_str(), 1) ) {
                     char buf[16];
                     sprintf(buf, "[%d]", child->getIndex());
                     name += buf;
@@ -197,7 +197,7 @@ void HttpdChannel::foundTerminator (void) {
                     line += "</A></B>";
                     line += "/<BR>";
                 } else {
-                    string value = node->getStringValue ( name, "" );
+                    string value = node->getStringValue ( name.c_str(), "" );
                     line += "<B>";
                     line += name;
                     line += "</B> <A HREF=\"";