mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 21:05:56 -05:00
impr: Replace hex::unused with std::ignore
This commit is contained in:
@@ -815,7 +815,7 @@ namespace hex {
|
||||
return std::string(GIT_COMMIT_HASH_LONG).substr(0, 7);
|
||||
}
|
||||
#else
|
||||
hex::unused(longHash);
|
||||
std::ignore = longHash;
|
||||
return "Unknown";
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -112,10 +112,6 @@ namespace hex {
|
||||
}
|
||||
|
||||
Plugin::~Plugin() {
|
||||
if (isLoaded()) {
|
||||
log::info("Trying to unload plugin '{}'", getPluginName());
|
||||
}
|
||||
|
||||
unloadLibrary(m_handle, m_path);
|
||||
}
|
||||
|
||||
@@ -335,7 +331,7 @@ namespace hex {
|
||||
void PluginManager::initializeNewPlugins() {
|
||||
for (const auto &plugin : getPlugins()) {
|
||||
if (!plugin.isLoaded())
|
||||
hex::unused(plugin.initializePlugin());
|
||||
std::ignore = plugin.initializePlugin();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -490,7 +490,7 @@ namespace hex {
|
||||
#elif defined(OS_LINUX)
|
||||
pthread_setname_np(pthread_self(), name.c_str());
|
||||
#elif defined(OS_WEB)
|
||||
hex::unused(name);
|
||||
std::ignore = name;
|
||||
#elif defined(OS_MACOS)
|
||||
pthread_setname_np(name.c_str());
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user