diff options
| author | bunnei <bunneidev@gmail.com> | 2018-10-29 22:48:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-29 22:48:59 -0400 |
| commit | 2bf8ae7730a830a6079602cfa3413dbc30d2f3c5 (patch) | |
| tree | 8e1938f6954fa00012a2060c31c07cf1eef47e6d /src/core/hle/kernel/kernel.cpp | |
| parent | 7a504b045ba68d10d339ea0dd8eafdc073b5e124 (diff) | |
| parent | 55233bbdd27a3c36317ea06c1fa6bf4abaa62294 (diff) | |
Merge pull request #1611 from lioncash/const
core: Add missing const variants of getters for the System class
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
| -rw-r--r-- | src/core/hle/kernel/kernel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 4b6b32dd54..1fd4ba5d26 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -32,7 +32,7 @@ namespace Kernel { */ static void ThreadWakeupCallback(u64 thread_handle, [[maybe_unused]] int cycles_late) { const auto proper_handle = static_cast<Handle>(thread_handle); - auto& system = Core::System::GetInstance(); + const auto& system = Core::System::GetInstance(); // Lock the global kernel mutex when we enter the kernel HLE. std::lock_guard<std::recursive_mutex> lock(HLE::g_hle_lock); @@ -90,7 +90,7 @@ static void ThreadWakeupCallback(u64 thread_handle, [[maybe_unused]] int cycles_ /// The timer callback event, called when a timer is fired static void TimerCallback(u64 timer_handle, int cycles_late) { const auto proper_handle = static_cast<Handle>(timer_handle); - auto& system = Core::System::GetInstance(); + const auto& system = Core::System::GetInstance(); SharedPtr<Timer> timer = system.Kernel().RetrieveTimerFromCallbackHandleTable(proper_handle); if (timer == nullptr) { |
