aboutsummaryrefslogtreecommitdiff
path: root/source/Uid.cpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-05-23 22:36:46 -0700
committerrtk0c <[email protected]>2022-05-23 22:36:46 -0700
commite3e848ac4da1c2ae59d93e62da8ef6f87b3452cd (patch)
treef70d86d4ae80f1fedc0afb1ba3b923e3651f0475 /source/Uid.cpp
parent123f741e3f5374b93ac39887b62bfa0d66762ae2 (diff)
Changeset: 37 Branch comment: [] Add infrastructure for rendering wireframe (rendering broken) including saving and loading config files
Diffstat (limited to 'source/Uid.cpp')
-rw-r--r--source/Uid.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Uid.cpp b/source/Uid.cpp
index 1930cd8..7f8fd9d 100644
--- a/source/Uid.cpp
+++ b/source/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;