impr: Replace hex::unused with std::ignore

This commit is contained in:
WerWolv
2024-12-14 21:35:54 +01:00
parent 3f316e42f2
commit 7f75706584
43 changed files with 173 additions and 139 deletions

View File

@@ -21,7 +21,8 @@ namespace hex::ui {
DataVisualizerAscii() : DataVisualizer("ASCII", 1, 1) { }
void draw(u64 address, const u8 *data, size_t size, bool upperCase) override {
hex::unused(address, upperCase);
std::ignore = address;
std::ignore = upperCase;
if (size == 1) {
const char c = char(data[0]);
@@ -37,7 +38,9 @@ namespace hex::ui {
}
bool drawEditing(u64 address, u8 *data, size_t size, bool upperCase, bool startedEditing) override {
hex::unused(address, startedEditing, upperCase);
std::ignore = address;
std::ignore = startedEditing;
std::ignore = upperCase;
if (size == 1) {
struct UserData {

View File

@@ -747,7 +747,7 @@ namespace hex::ui {
void PatternDrawer::visit(pl::ptrn::PatternPadding& pattern) {
// Do nothing
hex::unused(pattern);
std::ignore = pattern;
}
void PatternDrawer::visit(pl::ptrn::PatternPointer& pattern) {