mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-07 00:27:13 +01: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:
@@ -42,7 +42,7 @@ class ODFlacDecoder;
|
||||
class ODFLACFile;
|
||||
|
||||
/// A class representing a modular task to be used with the On-Demand structures.
|
||||
class ODDecodeFlacTask:public ODDecodeTask
|
||||
class ODDecodeFlacTask final : public ODDecodeTask
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -61,7 +61,7 @@ class ODDecodeFlacTask:public ODDecodeTask
|
||||
};
|
||||
|
||||
|
||||
class ODFLACFile : public FLAC::Decoder::File
|
||||
class ODFLACFile final : public FLAC::Decoder::File
|
||||
{
|
||||
public:
|
||||
ODFLACFile(ODFlacDecoder *decoder) : mDecoder(decoder)
|
||||
@@ -91,7 +91,7 @@ class ODFLACFile : public FLAC::Decoder::File
|
||||
|
||||
|
||||
///class to decode a particular file (one per file). Saves info such as filename and length (after the header is read.)
|
||||
class ODFlacDecoder:public ODFileDecoder
|
||||
class ODFlacDecoder final : public ODFileDecoder
|
||||
{
|
||||
friend class ODFLACFile;
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user