Emu: some cleanup

This commit is contained in:
Megamouse 2021-04-07 23:05:18 +02:00
parent a3e8a61547
commit 03b76b4606
149 changed files with 957 additions and 1139 deletions

View file

@ -132,10 +132,10 @@ void memory_string_searcher::OnSearch()
wstr += part;
}
if (usz pos = wstr.find_first_not_of(hex_chars); pos != umax)
if (const usz pos = wstr.find_first_not_of(hex_chars); pos != umax)
{
gui_log.error("String '%s' cannot be interpreted as hexadecimal byte string due to unknown character '%s'."
, m_addr_line->text().toStdString(), std::string_view{&wstr[pos], 1});
gui_log.error("String '%s' cannot be interpreted as hexadecimal byte string due to unknown character '%s'.",
m_addr_line->text().toStdString(), std::string_view{&wstr[pos], 1});
return;
}
@ -196,7 +196,7 @@ void memory_string_searcher::OnSearch()
vm::reader_lock rlock;
named_thread_group workers("String Searcher "sv, max_threads, [&]()
const named_thread_group workers("String Searcher "sv, max_threads, [&]()
{
u32 local_found = 0;