From 9142535d1d1a40cebadea0efae64cf2f230bb1d5 Mon Sep 17 00:00:00 2001 From: Vincenzo Sicurella Date: Tue, 16 Jul 2024 21:11:44 -0400 Subject: [PATCH] fix const override --- Source/MainWindow.cpp | 2 +- Source/MainWindow.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/MainWindow.cpp b/Source/MainWindow.cpp index a96f159..0aa22f9 100644 --- a/Source/MainWindow.cpp +++ b/Source/MainWindow.cpp @@ -81,7 +81,7 @@ void MainWindow::closeButtonPressed() JUCEApplication::getInstance()->systemRequestedQuit(); } -BorderSize MainWindow::getBorderThickness() +BorderSize MainWindow::getBorderThickness() const { return BorderSize (1); } diff --git a/Source/MainWindow.h b/Source/MainWindow.h index 2109f7f..e924446 100644 --- a/Source/MainWindow.h +++ b/Source/MainWindow.h @@ -39,7 +39,7 @@ class MainWindow : public juce::DocumentWindow void closeButtonPressed() override; - juce::BorderSize getBorderThickness() override; + juce::BorderSize getBorderThickness() const override; /* Note: Be careful if you override any DocumentWindow methods - the base class uses a lot of them, so by overriding you might break its functionality.