diff options
author | Sadie Powell <sadie@witchery.services> | 2024-01-23 15:28:23 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-01-23 15:28:23 +0000 |
commit | a6a0f6c44780c839b2269f4f29a26ecfdbd95544 (patch) | |
tree | d4d1fded5c14350eb003a665ca8de500a0440cea /modules/m_redis.cpp | |
parent | 398d674cf40c0dba4e4cd2edd0f325ace15128c2 (diff) |
Improve the layout of types that inherit from another type.
Diffstat (limited to 'modules/m_redis.cpp')
-rw-r--r-- | modules/m_redis.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/modules/m_redis.cpp b/modules/m_redis.cpp index 7e8f1dad3..b5a82985a 100644 --- a/modules/m_redis.cpp +++ b/modules/m_redis.cpp @@ -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; |