Skip to content

Commit

Permalink
fix const override
Browse files Browse the repository at this point in the history
  • Loading branch information
vsicurella committed Jul 17, 2024
1 parent f96223d commit 9142535
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void MainWindow::closeButtonPressed()
JUCEApplication::getInstance()->systemRequestedQuit();
}

BorderSize<int> MainWindow::getBorderThickness()
BorderSize<int> MainWindow::getBorderThickness() const
{
return BorderSize <int>(1);
}
Expand Down
2 changes: 1 addition & 1 deletion Source/MainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class MainWindow : public juce::DocumentWindow

void closeButtonPressed() override;

juce::BorderSize<int> getBorderThickness() override;
juce::BorderSize<int> 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.
Expand Down

0 comments on commit 9142535

Please sign in to comment.