From d79ae7a81956be74beaf59bd2d2d0c12c164fbec Mon Sep 17 00:00:00 2001 From: mfranz Date: Sat, 3 Nov 2007 17:04:04 +0000 Subject: [PATCH] sorting nodes -> don't use shared pointer --- src/Network/httpd.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Network/httpd.cxx b/src/Network/httpd.cxx index 700a8c0fb..fb9272594 100644 --- a/src/Network/httpd.cxx +++ b/src/Network/httpd.cxx @@ -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 children; + vector children; for (int i = 0; i < node->nChildren(); i++) children.push_back(node->getChild(i)); std::sort(children.begin(), children.end(), CompareNodes()); - vector::iterator it, end = children.end(); + vector::iterator it, end = children.end(); for (it = children.begin(); it != end; ++it) { SGPropertyNode *child = *it; string name = child->getDisplayName(true);