diff options
author | Lioncash <mathew1800@gmail.com> | 2020-07-27 21:57:03 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-07-27 21:57:05 -0400 |
commit | 989ad52dc1c46f1870a1a8431f7e3c669dceaf60 (patch) | |
tree | 28069710fc2341dd4798855b9fd7289e4de843a2 /src/core/cpu_manager.cpp | |
parent | 6b35317ff3ec51a0d28181094ee73634e639d658 (diff) |
cpu_manager: Remove redundant std::function declarations
We can just return the function directly. Making for less reading.
Diffstat (limited to 'src/core/cpu_manager.cpp')
-rw-r--r-- | src/core/cpu_manager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/cpu_manager.cpp b/src/core/cpu_manager.cpp index 32afcf3ae9..358943429f 100644 --- a/src/core/cpu_manager.cpp +++ b/src/core/cpu_manager.cpp @@ -52,15 +52,15 @@ void CpuManager::Shutdown() { } std::function<void(void*)> CpuManager::GetGuestThreadStartFunc() { - return std::function<void(void*)>(GuestThreadFunction); + return GuestThreadFunction; } std::function<void(void*)> CpuManager::GetIdleThreadStartFunc() { - return std::function<void(void*)>(IdleThreadFunction); + return IdleThreadFunction; } std::function<void(void*)> CpuManager::GetSuspendThreadStartFunc() { - return std::function<void(void*)>(SuspendThreadFunction); + return SuspendThreadFunction; } void CpuManager::GuestThreadFunction(void* cpu_manager_) { |