mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-22 01:34:21 +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:
parent
d03755c9e0
commit
9fa0d49be7
145 changed files with 407 additions and 343 deletions
|
|
@ -65,7 +65,7 @@ try : TextPropertyComponent (propertyName, 1024, false),
|
|||
// which has set the project value to whatever is displayed in the label (this may be the
|
||||
// global/fallback value). In this case we have to reset the project value to blank:
|
||||
if (initialValueIsEmpty)
|
||||
getValue().setValue (String::empty);
|
||||
getValue().setValue (String());
|
||||
|
||||
getValue().addListener (this);
|
||||
setColour (textColourId, getTextColourToDisplay());
|
||||
|
|
@ -114,7 +114,7 @@ void DependencyPathPropertyComponent::labelTextChanged (Label*)
|
|||
void DependencyPathPropertyComponent::editorShown (Label* /*label*/, TextEditor& editor)
|
||||
{
|
||||
if (! pathValueSource.isUsingProjectSettings())
|
||||
editor.setText (String::empty, dontSendNotification);
|
||||
editor.setText (String(), dontSendNotification);
|
||||
}
|
||||
|
||||
void DependencyPathPropertyComponent::editorHidden (Label*, TextEditor&)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue