diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-05-29 01:48:32 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-05-29 01:48:32 +0000 |
commit | 4c114006de95489973d33a5415bb451bcd6cd62a (patch) | |
tree | 233fbe6da43a9351f328c2e88ffc93ae6b091b44 /Tools | |
parent | eebf7983a926007d2634708f76f7c972882ab9b6 (diff) | |
download | edk2-platforms-4c114006de95489973d33a5415bb451bcd6cd62a.tar.xz |
Add in GetNextToken and Register Callback Function funtionality for DXE Driver.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@309 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java b/Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java index 7b86e6b88f..e10f325ee6 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java +++ b/Tools/Source/GenBuild/org/tianocore/build/pcd/action/CollectPCDAction.java @@ -711,7 +711,7 @@ class PcdDatabase { private void getTwoGroupsOfTokens (ArrayList<Token> alTokens, List<Token> initTokens, List<Token> uninitTokens) {
for (int i = 0; i < alTokens.size(); i++) {
- Token t = (Token)alTokens.get(i);
+ Token t = alTokens.get(i);
if (t.hasDefaultValue()) {
initTokens.add(t);
} else {
@@ -789,16 +789,14 @@ class PcdDatabase { // PEI_PCD_DATABASE_INIT
//
java.util.Comparator<Token> comparator = new AlignmentSizeComp();
- List<Token> list = initTokens;
- java.util.Collections.sort(list, comparator);
+ java.util.Collections.sort(initTokens, comparator);
initCode = processTokens(initTokens);
//
// Generate Structure Declaration for PcdTokens without Default Value
// PEI_PCD_DATABASE_UNINIT
//
- list = uninitTokens;
- java.util.Collections.sort(list, comparator);
+ java.util.Collections.sort(uninitTokens, comparator);
uninitCode = processTokens(uninitTokens);
//
|