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:
+9
-4
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user