diff options
author | hop311 <hop3114@gmail.com> | 2024-07-19 20:02:25 +0200 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-07-19 20:02:25 +0200 |
commit | 03647d2249f72b6545628bb844685f87c4581062 (patch) | |
tree | 435dde45bb17dc12e74cc79bd5f25cc7a7ef8dca /src/openvic-simulation/history/Bookmark.hpp | |
parent | a673f89bb2705826b1c646365eab1775727372b7 (diff) |
Cleanup: inheritance, const movable variables, code formattingformat-cleanup
Diffstat (limited to 'src/openvic-simulation/history/Bookmark.hpp')
-rw-r--r-- | src/openvic-simulation/history/Bookmark.hpp | 14 |
1 files changed, 9 insertions, 5 deletions
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: |