diff --git a/source/gui/mostlyharmless_WebviewEditor.cpp b/source/gui/mostlyharmless_WebviewEditor.cpp index 08eaf12..932c7cd 100644 --- a/source/gui/mostlyharmless_WebviewEditor.cpp +++ b/source/gui/mostlyharmless_WebviewEditor.cpp @@ -45,14 +45,14 @@ namespace mostly_harmless::gui { return {}; }; - auto cacheCursorDownPositionCallback_ = [this](const choc::value::ValueView& args) -> choc::value::Value { + auto cacheCursorDownPositionCallback_ = [this](const choc::value::ValueView& /*args*/) -> choc::value::Value { std::uint32_t x, y; cursor::getCursorPosition(&x, &y); m_cursorState.lastMouseDownLocation = std::make_pair(x, y); return {}; }; - auto beginScopedCursorMoveGestureCallback_ = [this](const choc::value::ValueView& args) -> choc::value::Value { + auto beginScopedCursorMoveGestureCallback_ = [this](const choc::value::ValueView& /*args*/) -> choc::value::Value { std::uint32_t x, y; cursor::getCursorPosition(&x, &y); m_cursorState.lastMouseDownLocation = std::make_pair(x, y); @@ -60,7 +60,7 @@ namespace mostly_harmless::gui { return {}; }; - auto endScopedCursorMoveGestureCallback_ = [this](const choc::value::ValueView& args) -> choc::value::Value { + auto endScopedCursorMoveGestureCallback_ = [this](const choc::value::ValueView& /*args*/) -> choc::value::Value { mostly_harmless::utils::OnScopeExit se{ [this]() -> void { cursor::setCursorState(true); } }; @@ -73,14 +73,14 @@ namespace mostly_harmless::gui { return {}; }; - auto resetCursorPositionCallback_ = [this](const choc::value::ValueView& args) -> choc::value::Value { + auto resetCursorPositionCallback_ = [this](const choc::value::ValueView& /*args*/) -> choc::value::Value { const auto [x, y] = m_cursorState.lastMouseDownLocation.value_or(std::make_pair(0, 0)); mostly_harmless::gui::cursor::setCursorPosition(x, y); m_cursorState.lastMousePosition = std::make_pair(x, y); return {}; }; - auto tickCursorMoveCallback_ = [this](const choc::value::ValueView& args) -> choc::value::Value { + auto tickCursorMoveCallback_ = [this](const choc::value::ValueView& /*args*/) -> choc::value::Value { const auto lastMouseDownLocation = m_cursorState.lastMouseDownLocation.value_or(std::make_pair(0, 0)); const auto [prevX, prevY] = m_cursorState.lastMousePosition.value_or(lastMouseDownLocation); std::uint32_t x, y; @@ -92,7 +92,7 @@ namespace mostly_harmless::gui { return res; }; - auto clearPreviousCursorPositionCallback_ = [this](const choc::value::ValueView& args) -> choc::value::Value { + auto clearPreviousCursorPositionCallback_ = [this](const choc::value::ValueView& /*args*/) -> choc::value::Value { m_cursorState.lastMousePosition = {}; m_cursorState.lastMouseDownLocation = {}; return {};