Browse Source

Added 'override' keywords to some introjucer template files

tags/2021-05-28
jules 12 years ago
parent
commit
bc2f908c9c
2 changed files with 14 additions and 14 deletions
  1. +7
    -7
      extras/Introjucer/Source/BinaryData/jucer_MainTemplate_NoWindow.cpp
  2. +7
    -7
      extras/Introjucer/Source/BinaryData/jucer_MainTemplate_Window.cpp

+ 7
- 7
extras/Introjucer/Source/BinaryData/jucer_MainTemplate_NoWindow.cpp 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


+ 7
- 7
extras/Introjucer/Source/BinaryData/jucer_MainTemplate_Window.cpp 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


Loading…
Cancel
Save