mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-30 02:50:05 +00:00
Fixed some const violation errors
This commit is contained in:
parent
03fef746d5
commit
cff37f5b6a
32 changed files with 225 additions and 127 deletions
|
|
@ -221,7 +221,7 @@ void MainContentComponent::setupDemoColours()
|
|||
if (xml != nullptr)
|
||||
{
|
||||
auto colourSchemeTree = ValueTree::fromXml (*xml);
|
||||
auto& scheme = codeEditor.getColourScheme();
|
||||
CodeEditorComponent::ColourScheme scheme (codeEditor.getColourScheme());
|
||||
|
||||
for (auto& type : scheme.types)
|
||||
{
|
||||
|
|
@ -230,6 +230,8 @@ void MainContentComponent::setupDemoColours()
|
|||
if (colour.isValid())
|
||||
type.colour = Colour::fromString (colour ["colour"].toString());
|
||||
}
|
||||
|
||||
codeEditor.setColourScheme (scheme);
|
||||
}
|
||||
|
||||
codeEditor.setScrollbarThickness (6);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue