summaryrefslogtreecommitdiff
path: root/modules/database/db_flatfile.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-03-26 10:22:42 +0000
committerSadie Powell <sadie@witchery.services>2025-03-26 10:22:42 +0000
commitdc09408f1a68356ee21969cb4f4fb28e94bf6512 (patch)
treed0fba596df118c6c37088806eb27772b2a6e03f7 /modules/database/db_flatfile.cpp
parent49d86527efd5265d835ed5b57e97d5b2a40c6b32 (diff)
Add a typedef for the serializable id.
Diffstat (limited to 'modules/database/db_flatfile.cpp')
-rw-r--r--modules/database/db_flatfile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/database/db_flatfile.cpp b/modules/database/db_flatfile.cpp
index 2b2ede625..a68d80633 100644
--- a/modules/database/db_flatfile.cpp
+++ b/modules/database/db_flatfile.cpp
@@ -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)