1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Clang: Fix warnings when building with clang 10

This commit is contained in:
reuk 2020-06-29 19:59:58 +01:00
parent 286bb40a9e
commit 394c4fd475
144 changed files with 896 additions and 839 deletions

View file

@ -139,7 +139,7 @@ struct GraphEditorPanel::PinComponent : public Component,
auto colour = (pin.isMIDI() ? Colours::red : Colours::green);
g.setColour (colour.withRotatedHue (busIdx / 5.0f));
g.setColour (colour.withRotatedHue ((float) busIdx / 5.0f));
g.fillPath (p);
}
@ -963,7 +963,7 @@ struct GraphDocumentComponent::TooltipBar : public Component,
void paint (Graphics& g) override
{
g.setFont (Font (getHeight() * 0.7f, Font::bold));
g.setFont (Font ((float) getHeight() * 0.7f, Font::bold));
g.setColour (Colours::black);
g.drawFittedText (tip, 10, 0, getWidth() - 12, getHeight(), Justification::centredLeft, 1);
}