More final markings.

These classes were recommended by gcc's -Wsugggest-final-types as places where
large numbers of virtual functions could be optimized away.
This commit is contained in:
Tim Wojtulewicz 2020-04-03 15:26:44 -04:00
parent 9c89cd4a47
commit 4035ec7760
21 changed files with 26 additions and 27 deletions

View file

@ -165,7 +165,7 @@ private:
/**
* Represents a request to add an analyzer to an analyzer set.
*/
class AddMod : public Modification {
class AddMod final : public Modification {
public:
/**
* Construct request which can add an analyzer to an analyzer set.
@ -186,7 +186,7 @@ private:
/**
* Represents a request to remove an analyzer from an analyzer set.
*/
class RemoveMod : public Modification {
class RemoveMod final : public Modification {
public:
/**
* Construct request which can remove an analyzer from an analyzer set.

View file

@ -9,7 +9,7 @@ namespace file_analysis {
class File;
class FileReassembler : public Reassembler {
class FileReassembler final : public Reassembler {
public:
FileReassembler(File* f, uint64_t starting_offset);
@ -56,4 +56,4 @@ protected:
bool flushing;
};
} // namespace analyzer::*
} // namespace analyzer::*