1
0
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:
Sadie Powell
2024-01-23 15:28:23 +00:00
parent 398d674cf4
commit a6a0f6c447
232 changed files with 1648 additions and 798 deletions
+12 -6
View File
@@ -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> &params)
@@ -281,7 +284,8 @@ public:
}
};
class CommandOSException : public Command
class CommandOSException
: public Command
{
private:
void DoAdd(CommandSource &source, const std::vector<Anope::string> &params)
@@ -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;