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_mysql.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_mysql.cpp')
| -rw-r--r-- | src/modules/extra/m_mysql.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp index a67cae7f9..c3dcb4932 100644 --- a/src/modules/extra/m_mysql.cpp +++ b/src/modules/extra/m_mysql.cpp @@ -90,7 +90,7 @@ class SQLConnection; class MySQLresult; class DispatcherThread; -struct QueryQueueItem +struct QueryQueueItem final { // An SQL database which this query is executed on. SQLConnection* connection; @@ -109,7 +109,7 @@ struct QueryQueueItem } }; -struct ResultQueueItem +struct ResultQueueItem final { // An object which handles the result of the query. SQL::Query* query; @@ -146,7 +146,8 @@ class ModuleSQL final void OnUnloadModule(Module* mod) override; }; -class DispatcherThread : public SocketThread +class DispatcherThread final + : public SocketThread { private: ModuleSQL* const Parent; @@ -158,7 +159,8 @@ class DispatcherThread : public SocketThread /** Represents a mysql result set */ -class MySQLresult : public SQL::Result +class MySQLresult final + : public SQL::Result { public: SQL::Error err; @@ -267,7 +269,8 @@ class MySQLresult : public SQL::Result /** Represents a connection to a mysql database */ -class SQLConnection : public SQL::Provider +class SQLConnection final + : public SQL::Provider { private: bool EscapeString(SQL::Query* query, const std::string& in, std::string& out) |
