summaryrefslogtreecommitdiff
path: root/include/modules/cs_entrymsg.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/modules/cs_entrymsg.h')
-rw-r--r--include/modules/cs_entrymsg.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/include/modules/cs_entrymsg.h b/include/modules/cs_entrymsg.h
index 4b861745f..219c598a6 100644
--- a/include/modules/cs_entrymsg.h
+++ b/include/modules/cs_entrymsg.h
@@ -6,6 +6,8 @@
* Please read COPYING and README for further details.
*/
+#pragma once
+
struct EntryMsg
{
Anope::string chan;
@@ -13,22 +15,23 @@ struct EntryMsg
Anope::string message;
time_t when;
- virtual ~EntryMsg() { }
- protected:
- EntryMsg() { }
+ virtual ~EntryMsg() = default;
+protected:
+ EntryMsg() = default;
};
-struct EntryMessageList : Serialize::Checker<std::vector<EntryMsg *> >
+struct EntryMessageList
+ : Serialize::Checker<std::vector<EntryMsg *> >
{
- protected:
+protected:
EntryMessageList() : Serialize::Checker<std::vector<EntryMsg *> >("EntryMsg") { }
- public:
+public:
virtual ~EntryMessageList()
{
for (unsigned i = (*this)->size(); i > 0; --i)
delete (*this)->at(i - 1);
}
- virtual EntryMsg* Create() = 0;
+ virtual EntryMsg *Create() = 0;
};