From 03647d2249f72b6545628bb844685f87c4581062 Mon Sep 17 00:00:00 2001 From: hop311 Date: Fri, 19 Jul 2024 19:02:25 +0100 Subject: Cleanup: inheritance, const movable variables, code formatting --- src/openvic-simulation/history/Bookmark.hpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/openvic-simulation/history/Bookmark.hpp') diff --git a/src/openvic-simulation/history/Bookmark.hpp b/src/openvic-simulation/history/Bookmark.hpp index 6f30586..d945d41 100644 --- a/src/openvic-simulation/history/Bookmark.hpp +++ b/src/openvic-simulation/history/Bookmark.hpp @@ -9,19 +9,23 @@ namespace OpenVic { struct BookmarkManager; - struct Bookmark : HasIdentifier { + struct Bookmark : HasIdentifier, HasIndex<> { friend struct BookmarkManager; private: - const std::string PROPERTY(name); - const std::string PROPERTY(description); + std::string PROPERTY(name); + std::string PROPERTY(description); const Date PROPERTY(date); const uint32_t PROPERTY(initial_camera_x); const uint32_t PROPERTY(initial_camera_y); Bookmark( - size_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 + 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 ); public: -- cgit v1.2.3-56-ga3b1