diff options
| author | 2018-10-28 17:44:46 -0400 | |
|---|---|---|
| committer | 2018-10-28 17:45:29 -0400 | |
| commit | a973a049b7c55751cd70545d9ea0dbe1ff720f7e (patch) | |
| tree | 8e420102bf7f5963ebf000090ad608b0a5a83499 /src/core/hle/kernel/svc.cpp | |
| parent | core: Add missing const variants of getters for the System class (diff) | |
| download | yuzu-a973a049b7c55751cd70545d9ea0dbe1ff720f7e.tar.gz yuzu-a973a049b7c55751cd70545d9ea0dbe1ff720f7e.tar.xz yuzu-a973a049b7c55751cd70545d9ea0dbe1ff720f7e.zip | |
core: Make System references const where applicable
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 4e490e2b5..c7c579aaf 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp | |||
| @@ -572,7 +572,7 @@ static ResultCode GetInfo(u64* result, u64 info_id, u64 handle, u64 info_sub_id) | |||
| 572 | return ERR_INVALID_HANDLE; | 572 | return ERR_INVALID_HANDLE; |
| 573 | } | 573 | } |
| 574 | 574 | ||
| 575 | auto& system = Core::System::GetInstance(); | 575 | const auto& system = Core::System::GetInstance(); |
| 576 | const auto& scheduler = system.CurrentScheduler(); | 576 | const auto& scheduler = system.CurrentScheduler(); |
| 577 | const auto* const current_thread = scheduler.GetCurrentThread(); | 577 | const auto* const current_thread = scheduler.GetCurrentThread(); |
| 578 | const bool same_thread = current_thread == thread; | 578 | const bool same_thread = current_thread == thread; |