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. * 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. * should be kept up-to-date with the Storage::ReturnCodes script-level enum.
*/ */
class ReturnCode { class ReturnCode final {
public: public:
static void Initialize(); static void Initialize();
static void Cleanup(); static void Cleanup();

View file

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

View file

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

View file

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

View file

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