diff options
author | Jack Lloyd <[email protected]> | 2016-01-10 00:51:48 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-01-10 00:51:48 -0500 |
commit | 45124582e3b964800f0be1f88773dd6f2cafc672 (patch) | |
tree | 9bd788556ddf9731e466b7f24a16e604f662ea24 /src/cli/compress.cpp | |
parent | 672d29570e55686b90126b5d6f5d337ddf0b8f04 (diff) |
Add final attribute to many classes
In some cases this can offer better optimization, via devirtualization.
And it lets the user know the class is not intended for derivation.
Some discussion in GH #402
Diffstat (limited to 'src/cli/compress.cpp')
-rw-r--r-- | src/cli/compress.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/compress.cpp b/src/cli/compress.cpp index 0d29dc180..c573eaa20 100644 --- a/src/cli/compress.cpp +++ b/src/cli/compress.cpp @@ -43,7 +43,7 @@ void do_compress(Botan::Transform& comp, } -class Compress : public Command +class Compress final : public Command { public: Compress() : Command("compress --type=gzip --level=6 --buf-size=8192 file") {} @@ -103,7 +103,7 @@ class Compress : public Command BOTAN_REGISTER_COMMAND("compress", Compress); -class Decompress : public Command +class Decompress final : public Command { public: Decompress() : Command("decompress --buf-size=8192 file") {} |