1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 05:23:13 +02:00

Improve the layout of types that inherit from another type.

This commit is contained in:
Sadie Powell
2024-01-23 15:28:23 +00:00
parent 398d674cf4
commit a6a0f6c447
232 changed files with 1648 additions and 798 deletions
+11 -4
View File
@@ -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;