summaryrefslogtreecommitdiff
path: root/modules/extra/m_mysql.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-01-23 15:28:23 +0000
committerSadie Powell <sadie@witchery.services>2024-01-23 15:28:23 +0000
commita6a0f6c44780c839b2269f4f29a26ecfdbd95544 (patch)
treed4d1fded5c14350eb003a665ca8de500a0440cea /modules/extra/m_mysql.cpp
parent398d674cf40c0dba4e4cd2edd0f325ace15128c2 (diff)
Improve the layout of types that inherit from another type.
Diffstat (limited to 'modules/extra/m_mysql.cpp')
-rw-r--r--modules/extra/m_mysql.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/modules/extra/m_mysql.cpp b/modules/extra/m_mysql.cpp
index 7a7adc943..2ccc36d76 100644
--- a/modules/extra/m_mysql.cpp
+++ b/modules/extra/m_mysql.cpp
@@ -59,7 +59,8 @@ struct QueryResult
/** A MySQL result
*/
-class MySQLResult : public Result
+class MySQLResult
+ : public Result
{
MYSQL_RES *res = nullptr;
@@ -107,7 +108,8 @@ public:
/** A MySQL connection, there can be multiple
*/
-class MySQLService : public Provider
+class MySQLService
+ : public Provider
{
std::map<Anope::string, std::set<Anope::string> > active_schema;
@@ -156,7 +158,9 @@ public:
/** The SQL thread used to execute queries
*/
-class DispatcherThread : public Thread, public Condition
+class DispatcherThread
+ : public Thread
+ , public Condition
{
public:
DispatcherThread() : Thread() { }
@@ -166,7 +170,10 @@ public:
class ModuleSQL;
static ModuleSQL *me;
-class ModuleSQL : public Module, public Pipe
+
+class ModuleSQL
+ : public Module
+ , public Pipe
{
/* SQL connections */
std::map<Anope::string, MySQLService *> MySQLServices;