From 34b8ca3c338aab8810438c71f2d73115cc6a6ba2 Mon Sep 17 00:00:00 2001 From: mfranz Date: Sun, 30 Oct 2005 16:06:08 +0000 Subject: [PATCH] cosmetics --- src/ATC/ATCDialog.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ATC/ATCDialog.cxx b/src/ATC/ATCDialog.cxx index 58f1ceba4..65fbefd1d 100644 --- a/src/ATC/ATCDialog.cxx +++ b/src/ATC/ATCDialog.cxx @@ -78,7 +78,6 @@ static SGPropertyNode *getNamedNode(SGPropertyNode *prop, const char *name) { if ((p = getNamedNode(prop->getChild(i), name))) return p; - if (!strcmp(prop->getStringValue("name"), name)) return prop; @@ -289,10 +288,10 @@ struct atcdata { id = i, name = n, distance = d; } bool operator<(const atcdata& a) const { - return a.id != id && a.distance > distance; + return id != a.id && distance < a.distance; } bool operator==(const atcdata& a) const { - return a.distance == distance && a.id == id; + return distance == a.distance && id == a.id; } string id; string name; -- 2.39.5