AchievementManager: Fix -Wignored-qualifiers warning

Fix warning on Android builder by returning bool instead of const bool.
This commit is contained in:
Dentomologist 2024-06-27 14:30:16 -07:00
parent 233ea58446
commit c46c010ae3
2 changed files with 2 additions and 2 deletions

View File

@ -341,7 +341,7 @@ AchievementManager::RichPresence AchievementManager::GetRichPresence() const
return m_rich_presence; return m_rich_presence;
} }
const bool AchievementManager::AreChallengesUpdated() const bool AchievementManager::AreChallengesUpdated() const
{ {
return m_challenges_updated; return m_challenges_updated;
} }

View File

@ -116,7 +116,7 @@ public:
const Badge& GetAchievementBadge(AchievementId id, bool locked) const; const Badge& GetAchievementBadge(AchievementId id, bool locked) const;
const LeaderboardStatus* GetLeaderboardInfo(AchievementId leaderboard_id); const LeaderboardStatus* GetLeaderboardInfo(AchievementId leaderboard_id);
RichPresence GetRichPresence() const; RichPresence GetRichPresence() const;
const bool AreChallengesUpdated() const; bool AreChallengesUpdated() const;
void ResetChallengesUpdated(); void ResetChallengesUpdated();
const std::unordered_set<AchievementId>& GetActiveChallenges() const; const std::unordered_set<AchievementId>& GetActiveChallenges() const;
std::vector<std::string> GetActiveLeaderboards() const; std::vector<std::string> GetActiveLeaderboards() const;