mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-24 01:54:22 +00:00
Removed a few more places where static objects could cause problems for people who do unwise amounts of work in their static constructors.
This commit is contained in:
parent
fb15840f61
commit
a316bd5f6f
21 changed files with 44 additions and 44 deletions
|
|
@ -90,8 +90,8 @@ File PropertiesFile::Options::getDefaultFile() const
|
|||
File dir (File::getSpecialLocation (commonToAllUsers ? File::commonApplicationDataDirectory
|
||||
: File::userApplicationDataDirectory));
|
||||
|
||||
if (dir == File::nonexistent)
|
||||
return File::nonexistent;
|
||||
if (dir == File())
|
||||
return File();
|
||||
|
||||
dir = dir.getChildFile (folderName.isNotEmpty() ? folderName
|
||||
: applicationName);
|
||||
|
|
@ -165,7 +165,7 @@ bool PropertiesFile::save()
|
|||
stopTimer();
|
||||
|
||||
if (options.doNotSave
|
||||
|| file == File::nonexistent
|
||||
|| file == File()
|
||||
|| file.isDirectory()
|
||||
|| ! file.getParentDirectory().createDirectory())
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue