1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 23:13: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
+9 -4
View File
@@ -13,7 +13,9 @@ using namespace Redis;
class MyRedisService;
class RedisSocket : public BinarySocket, public ConnectionSocket
class RedisSocket
: public BinarySocket
, public ConnectionSocket
{
size_t ParseReply(Reply &r, const char *buf, size_t l);
public:
@@ -31,7 +33,8 @@ public:
bool Read(const char *buffer, size_t l) override;
};
class Transaction : public Interface
class Transaction
: public Interface
{
public:
std::deque<Interface *> interfaces;
@@ -71,7 +74,8 @@ public:
}
};
class MyRedisService : public Provider
class MyRedisService
: public Provider
{
public:
Anope::string host;
@@ -516,7 +520,8 @@ bool RedisSocket::Read(const char *buffer, size_t l)
}
class ModuleRedis : public Module
class ModuleRedis
: public Module
{
std::map<Anope::string, MyRedisService *> services;