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

@@ -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);

View File

@@ -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();