Profile: forgot to mark two functions as const.

This commit is contained in:
Guillaume Jacquemin 2020-10-05 08:41:23 +02:00
parent 0b846be139
commit 932052ab0a
2 changed files with 4 additions and 4 deletions

View file

@ -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;
}

View file

@ -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;