1
0
Fork 0
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:
John Cortell 2010-03-10 17:12:18 +00:00
parent f7defa47f6
commit c389d6d748

View file

@ -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 {