State: Fix shadowing warnings

This commit is contained in:
Pokechu22 2023-02-02 16:07:30 -08:00
parent 9559c45cae
commit debed35c10
1 changed files with 2 additions and 2 deletions

View File

@ -473,7 +473,7 @@ void SaveAs(const std::string& filename, bool wait)
Core::RunOnCPUThread( Core::RunOnCPUThread(
[&] { [&] {
{ {
std::lock_guard lk(s_state_writes_in_queue_mutex); std::lock_guard lk_(s_state_writes_in_queue_mutex);
++s_state_writes_in_queue; ++s_state_writes_in_queue;
} }
@ -515,7 +515,7 @@ void SaveAs(const std::string& filename, bool wait)
// someone aborted the save by changing the mode? // someone aborted the save by changing the mode?
{ {
// Note: The worker thread takes care of this in the other branch. // Note: The worker thread takes care of this in the other branch.
std::lock_guard lk(s_state_writes_in_queue_mutex); std::lock_guard lk_(s_state_writes_in_queue_mutex);
if (--s_state_writes_in_queue == 0) if (--s_state_writes_in_queue == 0)
s_state_write_queue_is_empty.notify_all(); s_state_write_queue_is_empty.notify_all();
} }