aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/history/Bookmark.cpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-07-19 20:02:25 +0200
committer hop311 <hop3114@gmail.com>2024-07-19 20:02:25 +0200
commit03647d2249f72b6545628bb844685f87c4581062 (patch)
tree435dde45bb17dc12e74cc79bd5f25cc7a7ef8dca /src/openvic-simulation/history/Bookmark.cpp
parenta673f89bb2705826b1c646365eab1775727372b7 (diff)
Cleanup: inheritance, const movable variables, code formattingformat-cleanup
Diffstat (limited to 'src/openvic-simulation/history/Bookmark.cpp')
-rw-r--r--src/openvic-simulation/history/Bookmark.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/openvic-simulation/history/Bookmark.cpp b/src/openvic-simulation/history/Bookmark.cpp
index ee7b494..d42bd69 100644
--- a/src/openvic-simulation/history/Bookmark.cpp
+++ b/src/openvic-simulation/history/Bookmark.cpp
@@ -11,10 +11,19 @@ using namespace OpenVic;
using namespace OpenVic::NodeTools;
Bookmark::Bookmark(
- size_t new_index, std::string_view new_name, std::string_view new_description, Date new_date, uint32_t new_initial_camera_x,
+ index_t new_index,
+ std::string_view new_name,
+ std::string_view new_description,
+ Date new_date,
+ uint32_t new_initial_camera_x,
uint32_t new_initial_camera_y
-) : HasIdentifier { std::to_string(new_index) }, name { new_name }, description { new_description }, date { new_date },
- initial_camera_x { new_initial_camera_x }, initial_camera_y { new_initial_camera_y } {}
+) : HasIdentifier { std::to_string(new_index) },
+ HasIndex { new_index },
+ name { new_name },
+ description { new_description },
+ date { new_date },
+ initial_camera_x { new_initial_camera_x },
+ initial_camera_y { new_initial_camera_y } {}
bool BookmarkManager::add_bookmark(
std::string_view name, std::string_view description, Date date, uint32_t initial_camera_x, uint32_t initial_camera_y