mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 14:24:54 +00:00
Refactor AchievementBox to const pointer
Not sure when or why this became necessary but it works.
This commit is contained in:
parent
4f210df86a
commit
6ad267017c
2 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@
|
|||
|
||||
static constexpr size_t PROGRESS_LENGTH = 24;
|
||||
|
||||
AchievementBox::AchievementBox(QWidget* parent, rc_client_achievement_t* achievement)
|
||||
AchievementBox::AchievementBox(QWidget* parent, const rc_client_achievement_t* achievement)
|
||||
: QGroupBox(parent), m_achievement(achievement)
|
||||
{
|
||||
const auto& instance = AchievementManager::GetInstance();
|
||||
|
|
|
@ -18,7 +18,7 @@ class AchievementBox final : public QGroupBox
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit AchievementBox(QWidget* parent, rc_client_achievement_t* achievement);
|
||||
explicit AchievementBox(QWidget* parent, const rc_client_achievement_t* achievement);
|
||||
void UpdateData();
|
||||
void UpdateProgress();
|
||||
|
||||
|
@ -28,7 +28,7 @@ private:
|
|||
QProgressBar* m_progress_bar;
|
||||
QLabel* m_progress_label;
|
||||
|
||||
rc_client_achievement_t* m_achievement;
|
||||
const rc_client_achievement_t* m_achievement;
|
||||
};
|
||||
|
||||
#endif // USE_RETRO_ACHIEVEMENTS
|
||||
|
|
Loading…
Add table
Reference in a new issue