diff options
| author | 2021-05-02 22:14:15 -0400 | |
|---|---|---|
| committer | 2021-05-03 01:19:13 -0400 | |
| commit | ebb64d5bf4c6a1b3e89e7addbd72ca310be7807b (patch) | |
| tree | 024cebd87e461cc8212810576b0e759321911f1f /src/core/memory | |
| parent | Merge pull request #6269 from lioncash/file-shadow (diff) | |
| download | yuzu-ebb64d5bf4c6a1b3e89e7addbd72ca310be7807b.tar.gz yuzu-ebb64d5bf4c6a1b3e89e7addbd72ca310be7807b.tar.xz yuzu-ebb64d5bf4c6a1b3e89e7addbd72ca310be7807b.zip | |
core: Resolve misc cases of variable shadowing
Resolves shadowing warnings that aren't in a particularly large
subsection of core. Brings us closer to turning -Wshadow into an error.
All that remains now is for cases in the kernel (left untouched for now
since a big change by bunnei is pending), and a few left over in the
service code (will be tackled next).
Diffstat (limited to 'src/core/memory')
| -rw-r--r-- | src/core/memory/cheat_engine.cpp | 4 | ||||
| -rw-r--r-- | src/core/memory/cheat_engine.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/memory/cheat_engine.cpp b/src/core/memory/cheat_engine.cpp index 8eec567ab..7643b7846 100644 --- a/src/core/memory/cheat_engine.cpp +++ b/src/core/memory/cheat_engine.cpp | |||
| @@ -222,8 +222,8 @@ void CheatEngine::SetMainMemoryParameters(VAddr main_region_begin, u64 main_regi | |||
| 222 | }; | 222 | }; |
| 223 | } | 223 | } |
| 224 | 224 | ||
| 225 | void CheatEngine::Reload(std::vector<CheatEntry> cheats) { | 225 | void CheatEngine::Reload(std::vector<CheatEntry> reload_cheats) { |
| 226 | this->cheats = std::move(cheats); | 226 | cheats = std::move(reload_cheats); |
| 227 | is_pending_reload.exchange(true); | 227 | is_pending_reload.exchange(true); |
| 228 | } | 228 | } |
| 229 | 229 | ||
diff --git a/src/core/memory/cheat_engine.h b/src/core/memory/cheat_engine.h index a31002346..5e6f901ec 100644 --- a/src/core/memory/cheat_engine.h +++ b/src/core/memory/cheat_engine.h | |||
| @@ -68,7 +68,7 @@ public: | |||
| 68 | void Initialize(); | 68 | void Initialize(); |
| 69 | void SetMainMemoryParameters(VAddr main_region_begin, u64 main_region_size); | 69 | void SetMainMemoryParameters(VAddr main_region_begin, u64 main_region_size); |
| 70 | 70 | ||
| 71 | void Reload(std::vector<CheatEntry> cheats); | 71 | void Reload(std::vector<CheatEntry> reload_cheats); |
| 72 | 72 | ||
| 73 | private: | 73 | private: |
| 74 | void FrameCallback(std::uintptr_t user_data, std::chrono::nanoseconds ns_late); | 74 | void FrameCallback(std::uintptr_t user_data, std::chrono::nanoseconds ns_late); |