From ad751011ca621a7e06542bdefa3fada70441624d Mon Sep 17 00:00:00 2001 From: redtide Date: Thu, 18 May 2023 12:56:20 +0200 Subject: [PATCH] Minor editor fixes --- plugins/editor/src/editor/DlgAbout.cpp | 4 ++-- plugins/editor/src/editor/DlgAbout.h | 2 +- plugins/editor/src/editor/Editor.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/editor/src/editor/DlgAbout.cpp b/plugins/editor/src/editor/DlgAbout.cpp index 6bf5ed8..a80cd19 100644 --- a/plugins/editor/src/editor/DlgAbout.cpp +++ b/plugins/editor/src/editor/DlgAbout.cpp @@ -236,9 +236,9 @@ CMouseEventResult SAboutDialog::onMouseDown(CPoint& where, const CButtonState& b } #if VSTGUI_MORE_THAN_4_10 -void SAboutDialog::onKeyboardEvent (KeyboardEvent& event, CFrame* frame) +void SAboutDialog::onKeyboardEvent(KeyboardEvent& event, CFrame* frame) { - auto vstKeyCode = toVstKeyCode (event); + auto vstKeyCode = toVstKeyCode(event); if (event.type == EventType::KeyDown && vstKeyCode.virt == VKEY_ESCAPE) { setVisible(false); diff --git a/plugins/editor/src/editor/DlgAbout.h b/plugins/editor/src/editor/DlgAbout.h index 4f36c21..5050286 100644 --- a/plugins/editor/src/editor/DlgAbout.h +++ b/plugins/editor/src/editor/DlgAbout.h @@ -33,7 +33,7 @@ public: void setPluginHost(const std::string& pluginHost); #if VSTGUI_MORE_THAN_4_10 - void onKeyboardEvent (KeyboardEvent& event, CFrame* frame) override; + void onKeyboardEvent(KeyboardEvent&, CFrame*); #else int32_t onKeyDown(const VstKeyCode& code, CFrame* frame) override; int32_t onKeyUp(const VstKeyCode& code, CFrame* frame) override; diff --git a/plugins/editor/src/editor/Editor.cpp b/plugins/editor/src/editor/Editor.cpp index 4d722c2..86ea428 100644 --- a/plugins/editor/src/editor/Editor.cpp +++ b/plugins/editor/src/editor/Editor.cpp @@ -929,7 +929,7 @@ void Editor::Impl::createFrameContents() cb->setRoundRectRadius(5.0); return cb; }; - auto createHoverBox = [this, &palette](const CRect& bounds, int, const char* label, CHoriTxtAlign align, int fontsize) { + auto createHoverBox = [](const CRect& bounds, int, const char* label, CHoriTxtAlign align, int fontsize) { CTextLabel* lbl = new CTextLabel(bounds, label); auto font = makeOwned("Roboto", fontsize); #if 0