mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 13:05:25 -05:00
impr: Replace hex::unused with std::ignore
This commit is contained in:
@@ -29,14 +29,22 @@ namespace hex::plugin::builtin {
|
||||
[[nodiscard]] bool open() override { return true; }
|
||||
void close() override { }
|
||||
|
||||
void readRaw(u64 offset, void *buffer, size_t size) override { hex::unused(offset, buffer, size); }
|
||||
void writeRaw(u64 offset, const void *buffer, size_t size) override { hex::unused(offset, buffer, size); }
|
||||
void readRaw(u64 offset, void *buffer, size_t size) override {
|
||||
std::ignore = offset;
|
||||
std::ignore = buffer;
|
||||
std::ignore = size;
|
||||
}
|
||||
void writeRaw(u64 offset, const void *buffer, size_t size) override {
|
||||
std::ignore = offset;
|
||||
std::ignore = buffer;
|
||||
std::ignore = size;
|
||||
}
|
||||
[[nodiscard]] u64 getActualSize() const override { return 0x00; }
|
||||
|
||||
[[nodiscard]] std::string getName() const override { return "None"; }
|
||||
[[nodiscard]] std::vector<Description> getDataDescription() const override { return { }; }
|
||||
|
||||
void loadSettings(const nlohmann::json &settings) override { hex::unused(settings); }
|
||||
void loadSettings(const nlohmann::json &settings) override { std::ignore = settings; }
|
||||
[[nodiscard]] nlohmann::json storeSettings(nlohmann::json settings) const override { return settings; }
|
||||
|
||||
[[nodiscard]] std::string getTypeName() const override {
|
||||
|
||||
@@ -12,13 +12,13 @@ namespace hex::plugin::builtin::undo {
|
||||
m_entry(std::move(entry)) { }
|
||||
|
||||
void undo(prv::Provider *provider) override {
|
||||
hex::unused(provider);
|
||||
std::ignore = provider;
|
||||
|
||||
ImHexApi::Bookmarks::remove(m_entry.id);
|
||||
}
|
||||
|
||||
void redo(prv::Provider *provider) override {
|
||||
hex::unused(provider);
|
||||
std::ignore = provider;
|
||||
|
||||
auto &[region, name, comment, color, locked, id] = m_entry;
|
||||
|
||||
|
||||
@@ -363,7 +363,7 @@ namespace hex::plugin::builtin {
|
||||
});
|
||||
|
||||
wolv::io::File file(path, wolv::io::File::Mode::Read);
|
||||
hex::unused(runtime.preprocessString(file.readString(), pl::api::Source::DefaultSource));
|
||||
std::ignore = runtime.preprocessString(file.readString(), pl::api::Source::DefaultSource);
|
||||
|
||||
return m_patternNames[path];
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user