mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-22 01:34:21 +00:00
Workaround for a GCC problem.
This commit is contained in:
parent
ba9f24681f
commit
3974e09c9f
1 changed files with 1 additions and 1 deletions
|
|
@ -583,7 +583,7 @@ CodeEditorComponent::ColourScheme CPlusPlusCodeTokeniser::getDefaultColourScheme
|
|||
|
||||
CodeEditorComponent::ColourScheme cs;
|
||||
|
||||
for (int i = 0; i < numElementsInArray (types); ++i)
|
||||
for (int i = 0; i < sizeof (types) / sizeof (types[0]); ++i) // (NB: numElementsInArray doesn't work here in GCC4.2)
|
||||
{
|
||||
cs.tokenTypeNames.add (types[i].name);
|
||||
cs.tokenColours.add (Colour (types[i].colour));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue