Resolve [-Wshadow]

This commit is contained in:
Minty-Meeo 2023-03-23 11:18:20 -05:00 committed by get
parent 0a88c2329a
commit 1312624e05
2 changed files with 3 additions and 5 deletions

View File

@ -268,9 +268,7 @@ void FifoRecorder::StartRecording(s32 numFrames, CallbackFunc finishedCb)
RecordInitialVideoMemory(); RecordInitialVideoMemory();
} }
auto& system = Core::System::GetInstance(); const auto& fifo = Core::System::GetInstance().GetCommandProcessor().GetFifo();
auto& command_processor = system.GetCommandProcessor();
const auto& fifo = command_processor.GetFifo();
EndFrame(fifo.CPBase.load(std::memory_order_relaxed), EndFrame(fifo.CPBase.load(std::memory_order_relaxed),
fifo.CPEnd.load(std::memory_order_relaxed)); fifo.CPEnd.load(std::memory_order_relaxed));
}, },

View File

@ -656,8 +656,8 @@ void TextureCacheBase::DoSaveState(PointerWrap& p)
} }
auto doList = [&p](auto list) { auto doList = [&p](auto list) {
u32 size = static_cast<u32>(list.size()); u32 list_size = static_cast<u32>(list.size());
p.Do(size); p.Do(list_size);
for (const auto& it : list) for (const auto& it : list)
{ {
p.Do(it.first); p.Do(it.first);