From 932052ab0a2ffe6ec9d701c520825c1d81189d8b Mon Sep 17 00:00:00 2001 From: William JCM Date: Mon, 5 Oct 2020 08:41:23 +0200 Subject: [PATCH] Profile: forgot to mark two functions as const. --- Profile/Profile.cpp | 4 ++-- Profile/Profile.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Profile/Profile.cpp b/Profile/Profile.cpp index 86daecc..4a7f183 100644 --- a/Profile/Profile.cpp +++ b/Profile/Profile.cpp @@ -141,7 +141,7 @@ auto Profile::getCredits() -> std::int32_t { return _credits; } -auto Profile::storyProgress() -> std::int32_t { +auto Profile::storyProgress() const -> std::int32_t { return _storyProgress; } @@ -161,7 +161,7 @@ auto Profile::getStoryProgress() -> std::int32_t { return _storyProgress; } -auto Profile::lastMissionId() -> std::int32_t { +auto Profile::lastMissionId() const -> std::int32_t { return _lastMissionId; } diff --git a/Profile/Profile.h b/Profile/Profile.h index 33611c6..9da11f5 100644 --- a/Profile/Profile.h +++ b/Profile/Profile.h @@ -32,10 +32,10 @@ class Profile { auto credits() const -> std::int32_t; auto getCredits() -> std::int32_t; - auto storyProgress() -> std::int32_t; + auto storyProgress() const -> std::int32_t; auto getStoryProgress() -> std::int32_t; - auto lastMissionId() -> std::int32_t; + auto lastMissionId() const -> std::int32_t; auto getLastMissionId() -> std::int32_t; auto backup(const std::string& filename) -> bool;