Procházet zdrojové kódy

kernel: fix clang build

Liam před 3 roky
rodič
revize
9775a73d1a
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/core/hle/kernel/kernel.cpp

+ 2 - 2
src/core/hle/kernel/kernel.cpp

@@ -386,10 +386,10 @@ struct KernelCore::Impl {
 
     // Gets the dummy KThread for the caller, allocating a new one if this is the first time
     KThread* GetHostDummyThread(KThread* existing_thread) {
-        auto initialize = [this](KThread* thread) {
+        const auto initialize{[](KThread* thread) {
             ASSERT(KThread::InitializeDummyThread(thread, nullptr).IsSuccess());
             return thread;
-        };
+        }};
 
         thread_local KThread raw_thread{system.Kernel()};
         thread_local KThread* thread = existing_thread ? existing_thread : initialize(&raw_thread);