mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
impr: Replace hex::unused with std::ignore
This commit is contained in:
@@ -35,7 +35,7 @@ namespace hex::init {
|
||||
std::vector<std::string> args;
|
||||
|
||||
#if defined (OS_WINDOWS)
|
||||
hex::unused(argv);
|
||||
std::ignore = argv;
|
||||
|
||||
// On Windows, argv contains UTF-16 encoded strings, so we need to convert them to UTF-8
|
||||
auto convertedCommandLine = ::CommandLineToArgvW(::GetCommandLineW(), &argc);
|
||||
|
||||
@@ -43,7 +43,9 @@
|
||||
|
||||
// Clean up everything after the main window is closed
|
||||
emscripten_set_beforeunload_callback(nullptr, [](int eventType, const void *reserved, void *userData) {
|
||||
hex::unused(eventType, reserved, userData);
|
||||
std::ignore = eventType;
|
||||
std::ignore = reserved;
|
||||
std::ignore = userData;
|
||||
|
||||
emscripten_cancel_main_loop();
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
#include <hex/helpers/intrinsics.hpp>
|
||||
#include <hex/helpers/logger.hpp>
|
||||
|
||||
#include "messaging.hpp"
|
||||
@@ -10,8 +9,8 @@
|
||||
namespace hex::messaging {
|
||||
|
||||
void sendToOtherInstance(const std::string &eventName, const std::vector<u8> &args) {
|
||||
hex::unused(eventName);
|
||||
hex::unused(args);
|
||||
std::ignore = eventName;
|
||||
std::ignore = args;
|
||||
log::error("Unimplemented function 'sendToOtherInstance()' called");
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
#include <hex/helpers/intrinsics.hpp>
|
||||
#include <hex/helpers/logger.hpp>
|
||||
|
||||
#include "messaging.hpp"
|
||||
@@ -10,8 +9,8 @@
|
||||
namespace hex::messaging {
|
||||
|
||||
void sendToOtherInstance(const std::string &eventName, const std::vector<u8> &args) {
|
||||
hex::unused(eventName);
|
||||
hex::unused(args);
|
||||
std::ignore = eventName;
|
||||
std::ignore = args;
|
||||
log::error("Unimplemented function 'sendToOtherInstance()' called");
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
#include <hex/helpers/intrinsics.hpp>
|
||||
#include <hex/helpers/logger.hpp>
|
||||
|
||||
#include "messaging.hpp"
|
||||
@@ -10,8 +9,8 @@
|
||||
namespace hex::messaging {
|
||||
|
||||
void sendToOtherInstance(const std::string &eventName, const std::vector<u8> &args) {
|
||||
hex::unused(eventName);
|
||||
hex::unused(args);
|
||||
std::ignore = eventName;
|
||||
std::ignore = args;
|
||||
log::error("Unimplemented function 'sendToOtherInstance()' called");
|
||||
}
|
||||
|
||||
|
||||
@@ -883,7 +883,7 @@ namespace hex {
|
||||
// Register key press callback
|
||||
glfwSetInputMode(m_window, GLFW_LOCK_KEY_MODS, GLFW_TRUE);
|
||||
glfwSetKeyCallback(m_window, [](GLFWwindow *window, int key, int scanCode, int action, int mods) {
|
||||
hex::unused(mods);
|
||||
std::ignore = mods;
|
||||
|
||||
|
||||
// Handle A-Z keys using their ASCII value instead of the keycode
|
||||
|
||||
Reference in New Issue
Block a user