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

Add a typedef for the serializable id.

This commit is contained in:
Sadie Powell
2025-03-26 10:22:42 +00:00
parent 49d86527ef
commit dc09408f1a
6 changed files with 11 additions and 10 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ class LoadData final
{
public:
std::fstream *fs;
uint64_t id = 0;
Serializable::Id id = 0;
std::map<Anope::string, Anope::string> data;
std::stringstream ss;
bool read = false;
@@ -59,7 +59,7 @@ public:
{
if (token.find("ID ") == 0)
{
this->id = Anope::Convert<uint64_t>(token.substr(3), 0);
this->id = Anope::Convert<Serializable::Id>(token.substr(3), 0);
continue;
}
else if (token.find("DATA ") != 0)