Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Schaefer2003-07-16 16:57:09 -0400
committerDoug Schaefer2003-07-16 16:57:09 -0400
commit176c8d7bf9cbdb70eac1c00734f0e082bc48c9d7 (patch)
tree74a710abbc2d29d303c18ceac9927f54713eb5ea /core/org.eclipse.cdt.core/build
parent37bc768c7353a23719e197b3edcaa9f89b8678f9 (diff)
downloadorg.eclipse.cdt-176c8d7bf9cbdb70eac1c00734f0e082bc48c9d7.tar.gz
org.eclipse.cdt-176c8d7bf9cbdb70eac1c00734f0e082bc48c9d7.tar.xz
org.eclipse.cdt-176c8d7bf9cbdb70eac1c00734f0e082bc48c9d7.zip
Fixes a couple of cdtproject bugs 40103.
Diffstat (limited to 'core/org.eclipse.cdt.core/build')
-rw-r--r--core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/standard/StandardBuildManager.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/standard/StandardBuildManager.java b/core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/standard/StandardBuildManager.java
index a157aa5603..0c8f1d4745 100644
--- a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/standard/StandardBuildManager.java
+++ b/core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/standard/StandardBuildManager.java
@@ -206,11 +206,10 @@ public class StandardBuildManager implements IScannerInfoProvider {
// Clear out all current children
// Note: Probably would be a better idea to merge in the data
- NodeList nodes = rootElement.getChildNodes();
- for (int i = 0; i < nodes.getLength(); ++i) {
- Node node = nodes.item(i);
- if (node instanceof Element)
- rootElement.removeChild(nodes.item(i));
+ Node child = rootElement.getFirstChild();
+ while (child != null) {
+ rootElement.removeChild(child);
+ child = rootElement.getFirstChild();
}
// Save the build info

Back to the top