1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

ResizableWindow: Add const to virtual members

This commit is contained in:
reuk 2024-05-23 15:54:55 +01:00
parent e12a1a75ac
commit 4201b76d15
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
6 changed files with 28 additions and 14 deletions

View file

@ -2,6 +2,27 @@
# Version 8.0.0
## Change
The virtual functions ResizableWindow::getBorderThickness() and
ResizableWindow::getContentComponentBorder() are now const.
**Possible Issues**
Classes overriding these functions will fail to compile.
**Workaround**
Add 'const' to overriding functions.
**Rationale**
Omitting 'const' from these functions implies that they may change the state of
the ResizableWindow, which would be unexpected behaviour for getter functions.
It also means that the functions cannot be called from const member functions,
which limits their usefulness.
## Change
As part of the Unicode upgrades TextLayout codepaths have been unified across