Fix std::basic_string warnings (#16261)

This commit is contained in:
oltolm 2024-11-11 20:54:44 +01:00 committed by GitHub
parent 2262ac1684
commit 2b0f786b2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 147 additions and 130 deletions

View file

@ -31,7 +31,8 @@
#include <QTimer>
#include <QCheckBox>
#include <QMessageBox>
#include <charconv>
#include <algorithm>
#include <functional>
#include "util/asm.hpp"
@ -753,8 +754,8 @@ void debugger_frame::keyPressEvent(QKeyEvent* event)
default: break;
}
if (const usz pos = std::basic_string_view<u32>(res.data(), 2).find_last_not_of(umax); pos != umax)
m_debugger_list->ShowAddress(res[pos] - std::max(row, 0) * 4, true);
if (auto it = std::find_if(res.rbegin(), res.rend(), FN(x != umax)); it != res.rend())
m_debugger_list->ShowAddress(*it - std::max(row, 0) * 4, true);
return;
}