Mark storage classes as final where appropriate

This commit is contained in:
Tim Wojtulewicz 2025-04-03 12:54:08 -07:00
parent 88786a28a2
commit 98bd85b805
5 changed files with 5 additions and 5 deletions

View file

@ -14,7 +14,7 @@ namespace storage {
* A collection of EnumValPtrs for the default set of result codes in the storage framework.
* should be kept up-to-date with the Storage::ReturnCodes script-level enum.
*/
class ReturnCode {
class ReturnCode final {
public:
static void Initialize();
static void Cleanup();

View file

@ -7,7 +7,7 @@
namespace zeek::storage::backend::redis {
class Plugin : public plugin::Plugin {
class Plugin final : public plugin::Plugin {
public:
plugin::Configuration Configure() override {
AddComponent(new storage::BackendComponent("REDIS", backend::redis::Redis::Instantiate));

View file

@ -13,7 +13,7 @@ struct redisReply;
struct redisPollEvents;
namespace zeek::storage::backend::redis {
class Redis : public Backend, public iosource::IOSource {
class Redis final : public Backend, public iosource::IOSource {
public:
Redis() : Backend(SupportedModes::ASYNC, "REDIS"), IOSource(true) {}
~Redis() override = default;

View file

@ -7,7 +7,7 @@
namespace zeek::storage::backend::sqlite {
class Plugin : public plugin::Plugin {
class Plugin final : public plugin::Plugin {
public:
plugin::Configuration Configure() override {
AddComponent(new storage::BackendComponent("SQLITE", backend::sqlite::SQLite::Instantiate));

View file

@ -10,7 +10,7 @@ struct sqlite3_stmt;
namespace zeek::storage::backend::sqlite {
class SQLite : public Backend {
class SQLite final : public Backend {
public:
SQLite() : Backend(SupportedModes::SYNC, "SQLITE") {}
~SQLite() override = default;