]> git.mxchange.org Git - flightgear.git/commitdiff
sorting nodes -> don't use shared pointer
authormfranz <mfranz>
Sat, 3 Nov 2007 17:04:04 +0000 (17:04 +0000)
committermfranz <mfranz>
Sat, 3 Nov 2007 17:04:04 +0000 (17:04 +0000)
src/Network/httpd.cxx

index 700a8c0fbda803a15b370dec78337795adcece33..fb9272594fe7e9cc44a9e7a326ab48b5cb8007f5 100644 (file)
@@ -86,7 +86,7 @@ bool FGHttpd::close() {
 
 class CompareNodes {
 public:
-    bool operator() (const SGPropertyNode_ptr a, const SGPropertyNode_ptr b) const {
+    bool operator() (const SGPropertyNode *a, const SGPropertyNode *b) const {
         int r = strcmp(a->getName(), b->getName());
         return r ? r < 0 : a->getIndex() < b->getIndex();
     }
@@ -204,12 +204,12 @@ void HttpdChannel::foundTerminator (void) {
             response += getTerminator();
 
 
-            vector<SGPropertyNode_ptr> children;
+            vector<SGPropertyNode *> children;
             for (int i = 0; i < node->nChildren(); i++)
                 children.push_back(node->getChild(i));
             std::sort(children.begin(), children.end(), CompareNodes());
 
-            vector<SGPropertyNode_ptr>::iterator it, end = children.end();
+            vector<SGPropertyNode *>::iterator it, end = children.end();
             for (it = children.begin(); it != end; ++it) {
                 SGPropertyNode *child = *it;
                 string name = child->getDisplayName(true);