diff options
| author | Lioncash <mai.iam2048@gmail.com> | 2023-12-11 13:18:02 -0500 |
|---|---|---|
| committer | Lioncash <mai.iam2048@gmail.com> | 2023-12-11 13:36:39 -0500 |
| commit | e55f9ed1022a799b4f8ec8fec6ff84356b05a0f3 (patch) | |
| tree | d4c984e45ed24f790541737071bc1e959e7c056c /Source/Core/DolphinQt/MainWindow.cpp | |
| parent | d84ed054ee7fcaa9f9d1abbd5db0f10aed659092 (diff) | |
AchievementManager: Make GetInstance() return a reference
The internal static member will always have a valid lifetime. Makes this
consistent with other instance based objects in our code.
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/MainWindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp index bf7e7e776f..9189e82b11 100644 --- a/Source/Core/DolphinQt/MainWindow.cpp +++ b/Source/Core/DolphinQt/MainWindow.cpp @@ -258,7 +258,7 @@ MainWindow::MainWindow(std::unique_ptr<BootParameters> boot_parameters, NetPlayInit(); #ifdef USE_RETRO_ACHIEVEMENTS - AchievementManager::GetInstance()->Init(); + AchievementManager::GetInstance().Init(); #endif // USE_RETRO_ACHIEVEMENTS #if defined(__unix__) || defined(__unix) || defined(__APPLE__) @@ -327,7 +327,7 @@ MainWindow::~MainWindow() Settings::Instance().ResetNetPlayServer(); #ifdef USE_RETRO_ACHIEVEMENTS - AchievementManager::GetInstance()->Shutdown(); + AchievementManager::GetInstance().Shutdown(); #endif // USE_RETRO_ACHIEVEMENTS delete m_render_widget; |
