mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fixes a couple of cdtproject bugs 40103.
This commit is contained in:
parent
37bc768c73
commit
176c8d7bf9
2 changed files with 5 additions and 6 deletions
|
@ -206,11 +206,10 @@ public class StandardBuildManager implements IScannerInfoProvider {
|
||||||
|
|
||||||
// Clear out all current children
|
// Clear out all current children
|
||||||
// Note: Probably would be a better idea to merge in the data
|
// Note: Probably would be a better idea to merge in the data
|
||||||
NodeList nodes = rootElement.getChildNodes();
|
Node child = rootElement.getFirstChild();
|
||||||
for (int i = 0; i < nodes.getLength(); ++i) {
|
while (child != null) {
|
||||||
Node node = nodes.item(i);
|
rootElement.removeChild(child);
|
||||||
if (node instanceof Element)
|
child = rootElement.getFirstChild();
|
||||||
rootElement.removeChild(nodes.item(i));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save the build info
|
// Save the build info
|
||||||
|
|
|
@ -577,7 +577,7 @@ public class CDescriptor implements ICDescriptor {
|
||||||
|
|
||||||
private void decodeProjectData(Element data) throws CoreException {
|
private void decodeProjectData(Element data) throws CoreException {
|
||||||
Document doc = getProjectDataDoc();
|
Document doc = getProjectDataDoc();
|
||||||
doc.getDocumentElement().appendChild(doc.importNode(data, true));
|
doc.replaceChild(doc.importNode(data, true), doc.getDocumentElement());
|
||||||
}
|
}
|
||||||
|
|
||||||
public Element getProjectData(String id) throws CoreException {
|
public Element getProjectData(String id) throws CoreException {
|
||||||
|
|
Loading…
Add table
Reference in a new issue