From 6475450c9abb665384d7667e51676db167121b5b Mon Sep 17 00:00:00 2001 From: Bob Jamison Date: Fri, 17 Nov 2006 00:20:20 +0000 Subject: library tweaks (bzr r1966) --- buildtool.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'buildtool.cpp') diff --git a/buildtool.cpp b/buildtool.cpp index bcec40c93..11d6b7fa9 100644 --- a/buildtool.cpp +++ b/buildtool.cpp @@ -4416,21 +4416,18 @@ std::vector DepTool::loadDepFile(const String &depFile) std::vector::iterator iter; for (iter = result.begin() ; iter != result.end() ; iter++) { - if (iter->path > depObject.path) + String vpath = iter->path; + vpath.append("/"); + vpath.append(iter->name); + String opath = depObject.path; + opath.append("/"); + opath.append(depObject.name); + if (vpath > opath) { inserted = true; iter = result.insert(iter, depObject); break; } - else if (iter->path == depObject.path) - { - if (iter->name > depObject.name) - { - inserted = true; - iter = result.insert(iter, depObject); - break; - } - } } if (!inserted) result.push_back(depObject); -- cgit v1.2.3