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 /src | |
parent | 398d674cf40c0dba4e4cd2edd0f325ace15128c2 (diff) |
Improve the layout of types that inherit from another type.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 6 | ||||
-rw-r--r-- | src/modes.cpp | 3 | ||||
-rw-r--r-- | src/uplink.cpp | 3 |
3 files changed, 8 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index f2228eead..a9697395b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -41,7 +41,8 @@ time_t Anope::CurTime = time(NULL); size_t Anope::CurrentUplink = -1; -class UpdateTimer : public Timer +class UpdateTimer + : public Timer { public: UpdateTimer(time_t timeout) : Timer(timeout, Anope::CurTime, true) { } @@ -52,7 +53,8 @@ public: } }; -class ExpireTimer : public Timer +class ExpireTimer + : public Timer { public: ExpireTimer(time_t timeout) : Timer(timeout, Anope::CurTime, true) { } diff --git a/src/modes.cpp b/src/modes.cpp index fa416cba5..0c64589d0 100644 --- a/src/modes.cpp +++ b/src/modes.cpp @@ -300,7 +300,8 @@ void StackerInfo::AddMode(Mode *mode, bool set, const Anope::string ¶m) list->emplace_back(mode, param); } -static class ModePipe : public Pipe +static class ModePipe + : public Pipe { public: void OnNotify() override diff --git a/src/uplink.cpp b/src/uplink.cpp index 170900e30..cc5850ba1 100644 --- a/src/uplink.cpp +++ b/src/uplink.cpp @@ -17,7 +17,8 @@ UplinkSocket *UplinkSock = NULL; -class ReconnectTimer : public Timer +class ReconnectTimer + : public Timer { public: ReconnectTimer(int wait) : Timer(wait) { } |