git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@448 6f19259b-4bc3-4df7-8a09-765794883524

This commit is contained in:
jlin16 2006-06-09 02:30:10 +00:00
parent 4bf9d8150f
commit 445705369d
1 changed files with 3 additions and 10 deletions

View File

@ -822,9 +822,7 @@ public class SpdFileContents {
e.setName(entryName); e.setName(entryName);
e.setCName(cName); e.setCName(cName);
e.addNewGuid().setStringValue(guid); e.addNewGuid().setStringValue(guid);
if (featureFlag != null) {
e.addNewFeatureFlag().setStringValue(featureFlag);
}
return; return;
} }
if (parent instanceof ProtocolDeclarationsDocument.ProtocolDeclarations) { if (parent instanceof ProtocolDeclarationsDocument.ProtocolDeclarations) {
@ -833,10 +831,7 @@ public class SpdFileContents {
pe.setName(entryName); pe.setName(entryName);
pe.setCName(cName); pe.setCName(cName);
pe.addNewGuid().setStringValue(guid); pe.addNewGuid().setStringValue(guid);
if (featureFlag != null) {
pe.addNewFeatureFlag().setStringValue(featureFlag);
}
return;
} }
if (parent instanceof PpiDeclarationsDocument.PpiDeclarations) { if (parent instanceof PpiDeclarationsDocument.PpiDeclarations) {
PpiDeclarationsDocument.PpiDeclarations.Entry ppe = ((PpiDeclarationsDocument.PpiDeclarations) parent) PpiDeclarationsDocument.PpiDeclarations.Entry ppe = ((PpiDeclarationsDocument.PpiDeclarations) parent)
@ -844,9 +839,7 @@ public class SpdFileContents {
ppe.setName(entryName); ppe.setName(entryName);
ppe.setCName(cName); ppe.setCName(cName);
ppe.addNewGuid().setStringValue(guid); ppe.addNewGuid().setStringValue(guid);
if (featureFlag != null) {
ppe.addNewFeatureFlag().setStringValue(featureFlag);
}
return; return;
} }