From a6a0f6c44780c839b2269f4f29a26ecfdbd95544 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 23 Jan 2024 15:28:23 +0000 Subject: Improve the layout of types that inherit from another type. --- modules/webcpanel/webcpanel.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'modules/webcpanel/webcpanel.h') diff --git a/modules/webcpanel/webcpanel.h b/modules/webcpanel/webcpanel.h index 8ec3ea8f9..2501971a8 100644 --- a/modules/webcpanel/webcpanel.h +++ b/modules/webcpanel/webcpanel.h @@ -30,7 +30,9 @@ struct Section }; /* An interface for this webpanel used by other modules */ -class Panel : public Section, public Service +class Panel + : public Section + , public Service { public: Panel(Module *c, const Anope::string &n) : Service(c, "Panel", n) { } @@ -63,7 +65,8 @@ public: } }; -class WebPanelPage : public HTTPPage +class WebPanelPage + : public HTTPPage { public: WebPanelPage(const Anope::string &u, const Anope::string &ct = "text/html") : HTTPPage(u, ct) @@ -73,7 +76,8 @@ public: virtual bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &) = 0; }; -class WebPanelProtectedPage : public WebPanelPage +class WebPanelProtectedPage + : public WebPanelPage { Anope::string category; -- cgit