1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-21 01:24:21 +00:00

Added 'override' keywords to some introjucer template files

This commit is contained in:
jules 2014-03-31 10:07:55 +01:00
parent 677b9ab530
commit bc2f908c9c
2 changed files with 14 additions and 14 deletions

View file

@ -18,30 +18,30 @@ public:
//==============================================================================
APPCLASSNAME() {}
const String getApplicationName() { return ProjectInfo::projectName; }
const String getApplicationVersion() { return ProjectInfo::versionString; }
bool moreThanOneInstanceAllowed() { return ALLOWMORETHANONEINSTANCE; }
const String getApplicationName() override { return ProjectInfo::projectName; }
const String getApplicationVersion() override { return ProjectInfo::versionString; }
bool moreThanOneInstanceAllowed() override { return ALLOWMORETHANONEINSTANCE; }
//==============================================================================
void initialise (const String& commandLine)
void initialise (const String& commandLine) override
{
// Add your application's initialisation code here..
}
void shutdown()
void shutdown() override
{
// Add your application's shutdown code here..
}
//==============================================================================
void systemRequestedQuit()
void systemRequestedQuit() override
{
// This is called when the app is being asked to quit: you can ignore this
// request and let the app carry on running, or call quit() to allow the app to close.
quit();
}
void anotherInstanceStarted (const String& commandLine)
void anotherInstanceStarted (const String& commandLine) override
{
// When another instance of the app is launched while this one is running,
// this method is invoked, and the commandLine parameter tells you what

View file

@ -18,19 +18,19 @@ public:
//==============================================================================
APPCLASSNAME() {}
const String getApplicationName() { return ProjectInfo::projectName; }
const String getApplicationVersion() { return ProjectInfo::versionString; }
bool moreThanOneInstanceAllowed() { return ALLOWMORETHANONEINSTANCE; }
const String getApplicationName() override { return ProjectInfo::projectName; }
const String getApplicationVersion() override { return ProjectInfo::versionString; }
bool moreThanOneInstanceAllowed() override { return ALLOWMORETHANONEINSTANCE; }
//==============================================================================
void initialise (const String& commandLine)
void initialise (const String& commandLine) override
{
// This method is where you should put your application's initialisation code..
mainWindow = new MainWindow();
}
void shutdown()
void shutdown() override
{
// Add your application's shutdown code here..
@ -38,14 +38,14 @@ public:
}
//==============================================================================
void systemRequestedQuit()
void systemRequestedQuit() override
{
// This is called when the app is being asked to quit: you can ignore this
// request and let the app carry on running, or call quit() to allow the app to close.
quit();
}
void anotherInstanceStarted (const String& commandLine)
void anotherInstanceStarted (const String& commandLine) override
{
// When another instance of the app is launched while this one is running,
// this method is invoked, and the commandLine parameter tells you what