AchievementManager: Return by reference from GetLock()

This makes the API a little nicer to use, since you don't need to do
a mandatory dereference when passing the lock into any kind of scope
guard.
This commit is contained in:
Lioncash
2023-12-11 13:51:47 -05:00
parent 3c7fa0738c
commit d90537cc18
7 changed files with 9 additions and 9 deletions

View File

@ -25,7 +25,7 @@ AchievementLeaderboardWidget::AchievementLeaderboardWidget(QWidget* parent) : QW
m_common_layout = new QGridLayout();
{
std::lock_guard lg{*AchievementManager::GetInstance().GetLock()};
std::lock_guard lg{AchievementManager::GetInstance().GetLock()};
UpdateData();
}