summaryrefslogtreecommitdiff
path: root/modules/webcpanel/template_fileserver.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/webcpanel/template_fileserver.h')
-rw-r--r--modules/webcpanel/template_fileserver.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/modules/webcpanel/template_fileserver.h b/modules/webcpanel/template_fileserver.h
index 8c0b1edf3..8466a1736 100644
--- a/modules/webcpanel/template_fileserver.h
+++ b/modules/webcpanel/template_fileserver.h
@@ -5,18 +5,21 @@
* Please read COPYING and README for further details.
*/
+#pragma once
+
#include "modules/httpd.h"
/* A basic file server. Used for serving non-static non-binary content on disk. */
-class TemplateFileServer
+class TemplateFileServer final
{
Anope::string file_name;
- public:
- struct Replacements : std::multimap<Anope::string, Anope::string>
+public:
+ struct Replacements final
+ : std::multimap<Anope::string, Anope::string>
{
- Anope::string& operator[](const Anope::string &key)
+ Anope::string &operator[](const Anope::string &key)
{
- return insert(std::make_pair(key, ""))->second;
+ return emplace(key, "")->second;
}
};