fix: Build issues due to unused variables

This commit is contained in:
WerWolv
2024-01-21 21:39:50 +01:00
parent 2d92858193
commit d5a57564fe

View File

@@ -50,7 +50,7 @@ namespace hex::plugin::builtin {
m_value = std::stod(value) * m_multiplier;
}
} catch (const std::exception &) {
m_value = 0;
m_value = i128(0);
m_unit = Unit::Invalid;
m_unitString.clear();
m_multiplier = 1;
@@ -331,7 +331,7 @@ namespace hex::plugin::builtin {
result.emplace_back(ContentRegistry::CommandPaletteCommands::impl::QueryResult {
provider->getName(),
[&provider, index](const auto&) { ImHexApi::Provider::setCurrentProvider(index); }
[index](const auto&) { ImHexApi::Provider::setCurrentProvider(index); }
});
}