From 65dc16c3b32108b4c3f8097ad463b6871a24223f Mon Sep 17 00:00:00 2001 From: Mikhail Sennikovsky Date: Sat, 17 Nov 2007 13:55:02 +0000 Subject: [PATCH] fix for [bug 205840] Should file-level tool be updated when project toolchain changes? --- .../internal/tcmodification/PathComparator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/tcmodification/PathComparator.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/tcmodification/PathComparator.java index 19fc7e29c6e..ff688de9055 100644 --- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/tcmodification/PathComparator.java +++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/tcmodification/PathComparator.java @@ -95,7 +95,7 @@ public class PathComparator implements Comparator { IPath childPath = (IPath)iter.next(); result.add(childPath); - children = getChildPathSet(children, getNext(childPath), true, false); + children = children.tailSet(getNext(childPath));//getChildPathSet(children, getNext(childPath), true, false); } return result; @@ -110,7 +110,7 @@ public class PathComparator implements Comparator { IPath childPath = (IPath)entry.getKey(); result.put(childPath, entry.getValue()); - children = getChildPathMap(children, getNext(childPath), true, false); + children = children.tailMap(getNext(childPath));//getChildPathMap(children, getNext(childPath), true, false); } return result;