mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-22 14:32:58 +02:00
Harmlessly qualify classes as final (or explicitly comment not)...
... Should have no effect on generated code, except perhaps some slight faster virtual function calls. Mostly useful as documentation of design intent. Tried to mark every one of our classes that inherits from another, or is a base for others, or has abstract virtual functions, and a few others besides.
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
// Open
|
||||
|
||||
class OpenProjectCommandType : public CommandType
|
||||
class OpenProjectCommandType final : public CommandType
|
||||
{
|
||||
public:
|
||||
virtual wxString BuildName();
|
||||
@@ -30,7 +30,7 @@ public:
|
||||
virtual Command *Create(CommandOutputTarget *target);
|
||||
};
|
||||
|
||||
class OpenProjectCommand : public CommandImplementation
|
||||
class OpenProjectCommand final : public CommandImplementation
|
||||
{
|
||||
public:
|
||||
OpenProjectCommand(CommandType &type,
|
||||
@@ -44,7 +44,7 @@ public:
|
||||
|
||||
// Save
|
||||
|
||||
class SaveProjectCommandType : public CommandType
|
||||
class SaveProjectCommandType final : public CommandType
|
||||
{
|
||||
public:
|
||||
virtual wxString BuildName();
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
virtual Command *Create(CommandOutputTarget *target);
|
||||
};
|
||||
|
||||
class SaveProjectCommand : public CommandImplementation
|
||||
class SaveProjectCommand final : public CommandImplementation
|
||||
{
|
||||
public:
|
||||
SaveProjectCommand(CommandType &type,
|
||||
|
Reference in New Issue
Block a user