mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
[303735] Adjustment to last fix (patch from Serge Beauchamp)
This commit is contained in:
parent
f7defa47f6
commit
c389d6d748
1 changed files with 3 additions and 0 deletions
|
@ -1229,11 +1229,14 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
|
|||
// No Match? Add it.
|
||||
if (j == types.length) {
|
||||
IInputType[] newTypes = new IInputType[types.length + 1];
|
||||
boolean[] newTypesWasReplaced = new boolean[types.length + 1];
|
||||
for (int k = 0; k < types.length; k++) {
|
||||
newTypes[k] = types[k];
|
||||
newTypesWasReplaced[k] = typesWasReplaced[k];
|
||||
}
|
||||
newTypes[j] = ourType;
|
||||
types = newTypes;
|
||||
typesWasReplaced = newTypesWasReplaced;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue