mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
impr: Replace hex::unused with std::ignore
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user