mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: Avoid dynamic initialization warning
This commit is contained in:
parent
51e8450026
commit
c357a32226
1 changed files with 7 additions and 3 deletions
|
|
@ -574,10 +574,14 @@ static constexpr int getBuiltJuceVersion()
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
static File lastDocumentOpened;
|
||||
static File& lastDocumentOpenedSingleton()
|
||||
{
|
||||
static File lastDocumentOpened;
|
||||
return lastDocumentOpened;
|
||||
}
|
||||
|
||||
File Project::getLastDocumentOpened() { return lastDocumentOpened; }
|
||||
void Project::setLastDocumentOpened (const File& file) { lastDocumentOpened = file; }
|
||||
File Project::getLastDocumentOpened() { return lastDocumentOpenedSingleton(); }
|
||||
void Project::setLastDocumentOpened (const File& file) { lastDocumentOpenedSingleton() = file; }
|
||||
|
||||
static void registerRecentFile (const File& file)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue