1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-04 03:40:07 +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

@ -1091,7 +1091,7 @@ void TreeView::fileDragEnter (const StringArray& files, int x, int y)
void TreeView::fileDragMove (const StringArray& files, int x, int y)
{
handleDrag (files, SourceDetails (String::empty, this, Point<int> (x, y)));
handleDrag (files, SourceDetails (String(), this, Point<int> (x, y)));
}
void TreeView::fileDragExit (const StringArray&)
@ -1101,7 +1101,7 @@ void TreeView::fileDragExit (const StringArray&)
void TreeView::filesDropped (const StringArray& files, int x, int y)
{
handleDrop (files, SourceDetails (String::empty, this, Point<int> (x, y)));
handleDrop (files, SourceDetails (String(), this, Point<int> (x, y)));
}
bool TreeView::isInterestedInDragSource (const SourceDetails& /*dragSourceDetails*/)
@ -1156,7 +1156,7 @@ TreeViewItem::~TreeViewItem()
String TreeViewItem::getUniqueName() const
{
return String::empty;
return String();
}
void TreeViewItem::itemOpennessChanged (bool)
@ -1378,7 +1378,7 @@ void TreeViewItem::itemSelectionChanged (bool)
String TreeViewItem::getTooltip()
{
return String::empty;
return String();
}
void TreeViewItem::ownerViewChanged (TreeView*)