aboutsummaryrefslogtreecommitdiff
path: root/source/10-common/Uid.cpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-06-09 23:20:33 -0700
committerrtk0c <[email protected]>2022-06-09 23:20:33 -0700
commitab81521707d6ffa3f5d01ad315c0070b54bf468a (patch)
treee9d19a27a9266962b87ae73576bfa5232ed705b6 /source/10-common/Uid.cpp
parent3acd929a28c268a52f7799ea3db1ad4a01790fec (diff)
parente3e848ac4da1c2ae59d93e62da8ef6f87b3452cd (diff)
Changeset: 68
Diffstat (limited to 'source/10-common/Uid.cpp')
-rw-r--r--source/10-common/Uid.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/10-common/Uid.cpp b/source/10-common/Uid.cpp
index 1930cd8..7f8fd9d 100644
--- a/source/10-common/Uid.cpp
+++ b/source/10-common/Uid.cpp
@@ -45,13 +45,13 @@ void Uid::Read(const rapidjson::Value& value) {
this->lower = lower.GetUint64();
}
-void Uid::WriteInto(rapidjson::Value& value, rapidjson::Document& root) {
+void Uid::WriteInto(rapidjson::Value& value, rapidjson::Document& root) const {
value.Reserve(2, root.GetAllocator());
value.PushBack((uint64_t)upper, root.GetAllocator());
value.PushBack((uint64_t)lower, root.GetAllocator());
}
-rapidjson::Value Uid::Write(rapidjson::Document& root) {
+rapidjson::Value Uid::Write(rapidjson::Document& root) const {
rapidjson::Value result(rapidjson::kArrayType);
WriteInto(result, root);
return result;