From d5a57564fe64b79c3fbf2a88767a356111c2f812 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 21 Jan 2024 21:39:50 +0100 Subject: [PATCH] fix: Build issues due to unused variables --- plugins/builtin/source/content/command_palette_commands.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/builtin/source/content/command_palette_commands.cpp b/plugins/builtin/source/content/command_palette_commands.cpp index a0d207cb2..5f2f4207a 100644 --- a/plugins/builtin/source/content/command_palette_commands.cpp +++ b/plugins/builtin/source/content/command_palette_commands.cpp @@ -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); } }); }