diff options
| author | 2021-10-04 17:07:51 +0100 | |
|---|---|---|
| committer | 2021-10-04 17:39:05 +0100 | |
| commit | dec5875aca7a2e0c281388db2f25d195ad9b2a3d (patch) | |
| tree | 0f8f741801677daa23e7f399282b64ecde137ad0 /src/modules/extra/m_pgsql.cpp | |
| parent | Mark all message tag provider classes as final. (diff) | |
Apply the final keyword to all module classes where appropriate.
Diffstat (limited to 'src/modules/extra/m_pgsql.cpp')
| -rw-r--r-- | src/modules/extra/m_pgsql.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index faf39d0b6..a6501c44e 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -73,7 +73,8 @@ enum SQLstatus WWRITE }; -class ReconnectTimer : public Timer +class ReconnectTimer final + : public Timer { private: ModulePgSQL* mod; @@ -84,7 +85,7 @@ class ReconnectTimer : public Timer bool Tick(time_t TIME) override; }; -struct QueueItem +struct QueueItem final { SQL::Query* c; std::string q; @@ -98,7 +99,8 @@ struct QueueItem * data is passes to the module nearly as directly as if it was using the API directly itself. */ -class PgSQLresult : public SQL::Result +class PgSQLresult final + : public SQL::Result { PGresult* res; int currentrow = 0; @@ -182,7 +184,9 @@ class PgSQLresult : public SQL::Result /** SQLConn represents one SQL session. */ -class SQLConn : public SQL::Provider, public EventHandler +class SQLConn final + : public SQL::Provider + , public EventHandler { public: std::shared_ptr<ConfigTag> conf; /* The <database> entry */ |
