diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2006-11-17 00:20:20 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2006-11-17 00:20:20 +0000 |
| commit | 6475450c9abb665384d7667e51676db167121b5b (patch) | |
| tree | 69381821749c6a5060b45b455e53690a43235f72 /buildtool.cpp | |
| parent | New file. use for building with gtk28 (diff) | |
| download | inkscape-6475450c9abb665384d7667e51676db167121b5b.tar.gz inkscape-6475450c9abb665384d7667e51676db167121b5b.zip | |
library tweaks
(bzr r1966)
Diffstat (limited to 'buildtool.cpp')
| -rw-r--r-- | buildtool.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/buildtool.cpp b/buildtool.cpp index bcec40c93..11d6b7fa9 100644 --- a/buildtool.cpp +++ b/buildtool.cpp @@ -4416,21 +4416,18 @@ std::vector<DepRec> DepTool::loadDepFile(const String &depFile) std::vector<DepRec>::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); |
