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:
parent
e12a1a75ac
commit
4201b76d15
6 changed files with 28 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue