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

Added an option JUCE_ALLOW_STATIC_NULL_VARIABLES that can be used to turn off dangerous statics like String::empty, var::null, etc.

This commit is contained in:
jules 2016-09-16 12:02:35 +01:00
parent d03755c9e0
commit 9fa0d49be7
145 changed files with 407 additions and 343 deletions

View file

@ -1176,7 +1176,7 @@ Font LookAndFeel_V2::getComboBoxFont (ComboBox& box)
Label* LookAndFeel_V2::createComboBoxTextBox (ComboBox&)
{
return new Label (String::empty, String::empty);
return new Label (String(), String());
}
void LookAndFeel_V2::positionComboBoxText (ComboBox& box, Label& label)
@ -1454,13 +1454,13 @@ void LookAndFeel_V2::drawRotarySlider (Graphics& g, int x, int y, int width, int
Button* LookAndFeel_V2::createSliderButton (Slider&, const bool isIncrement)
{
return new TextButton (isIncrement ? "+" : "-", String::empty);
return new TextButton (isIncrement ? "+" : "-", String());
}
class LookAndFeel_V2::SliderLabelComp : public Label
{
public:
SliderLabelComp() : Label (String::empty, String::empty) {}
SliderLabelComp() : Label (String(), String()) {}
void mouseWheelMove (const MouseEvent&, const MouseWheelDetails&) {}
};