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:
parent
d03755c9e0
commit
9fa0d49be7
145 changed files with 407 additions and 343 deletions
|
|
@ -172,7 +172,7 @@ public:
|
|||
|
||||
void paintItem (Graphics& g, int width, int height) override
|
||||
{
|
||||
if (file != File::nonexistent)
|
||||
if (file != File())
|
||||
{
|
||||
updateIcon (true);
|
||||
|
||||
|
|
@ -285,7 +285,7 @@ File FileTreeComponent::getSelectedFile (const int index) const
|
|||
if (const FileListTreeItem* const item = dynamic_cast<const FileListTreeItem*> (getSelectedItem (index)))
|
||||
return item->file;
|
||||
|
||||
return File::nonexistent;
|
||||
return File();
|
||||
}
|
||||
|
||||
void FileTreeComponent::deselectAllFiles()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue