From e3e848ac4da1c2ae59d93e62da8ef6f87b3452cd Mon Sep 17 00:00:00 2001 From: rtk0c Date: Mon, 23 May 2022 22:36:46 -0700 Subject: Changeset: 37 Branch comment: [] Add infrastructure for rendering wireframe (rendering broken) including saving and loading config files --- source/Uid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/Uid.cpp') 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; -- cgit v1.2.3-70-g09d2