mirror of
https://github.com/anope/anope.git
synced 2026-07-05 20:53:13 +02:00
Improve the layout of types that inherit from another type.
This commit is contained in:
@@ -35,7 +35,8 @@ namespace
|
||||
unsigned ipv6_cidr;
|
||||
}
|
||||
|
||||
class MySessionService : public SessionService
|
||||
class MySessionService
|
||||
: public SessionService
|
||||
{
|
||||
SessionMap Sessions;
|
||||
Serialize::Checker<ExceptionVector> Exceptions;
|
||||
@@ -126,7 +127,8 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class ExceptionDelCallback : public NumberList
|
||||
class ExceptionDelCallback
|
||||
: public NumberList
|
||||
{
|
||||
protected:
|
||||
CommandSource &source;
|
||||
@@ -168,7 +170,8 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class CommandOSSession : public Command
|
||||
class CommandOSSession
|
||||
: public Command
|
||||
{
|
||||
private:
|
||||
void DoList(CommandSource &source, const std::vector<Anope::string> ¶ms)
|
||||
@@ -281,7 +284,8 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class CommandOSException : public Command
|
||||
class CommandOSException
|
||||
: public Command
|
||||
{
|
||||
private:
|
||||
void DoAdd(CommandSource &source, const std::vector<Anope::string> ¶ms)
|
||||
@@ -431,7 +435,8 @@ private:
|
||||
|
||||
if (!mask.empty() && mask.find_first_not_of("1234567890,-") == Anope::string::npos)
|
||||
{
|
||||
class ExceptionListCallback : public NumberList
|
||||
class ExceptionListCallback
|
||||
: public NumberList
|
||||
{
|
||||
CommandSource &source;
|
||||
ListFormatter &list;
|
||||
@@ -577,7 +582,8 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class OSSession : public Module
|
||||
class OSSession
|
||||
: public Module
|
||||
{
|
||||
Serialize::Type exception_type;
|
||||
MySessionService ss;
|
||||
|
||||
Reference in New Issue
Block a user