This auto should not actually be const

This commit is contained in:
Jarek Syrylak
2018-07-12 17:53:47 +01:00
parent 5a9ba8342f
commit 85d02d07fc

View File

@@ -200,7 +200,7 @@ void RegisterModule(std::string name, PAddr beg, PAddr end, bool add_elf_ext) {
static Kernel::Thread* FindThreadById(int id) {
for (u32 core = 0; core < Core::NUM_CPU_CORES; core++) {
const auto& threads = Core::System::GetInstance().Scheduler(core)->GetThreadList();
for (const auto& thread : threads) {
for (auto& thread : threads) {
if (thread->GetThreadId() == id) {
current_core = core;
return thread.get();