1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 06:36:38 +02:00

Add defines for the core serialisation type names.

This commit is contained in:
Sadie Powell
2025-03-12 14:20:43 +00:00
parent cdcf0e2f9a
commit e7b18609f6
12 changed files with 73 additions and 39 deletions
+5 -3
View File
@@ -17,7 +17,8 @@
#include "account.h"
#include "regchannel.h"
Memo::Memo() : Serializable("Memo")
Memo::Memo()
: Serializable(MEMO_TYPE)
{
mi = NULL;
unread = receipt = false;
@@ -35,7 +36,7 @@ Memo::~Memo()
}
Memo::Type::Type()
: Serialize::Type("Memo")
: Serialize::Type(MEMO_TYPE)
{
}
@@ -82,7 +83,8 @@ Serializable *Memo::Type::Unserialize(Serializable *obj, Serialize::Data &data)
return m;
}
MemoInfo::MemoInfo() : memos("Memo")
MemoInfo::MemoInfo()
: memos(MEMO_TYPE)
{
}