mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-13 15:40:57 +00:00
WINTERMUTE: Deconstify UIObject::getHeight() to fix a shadowed overload.
This commit is contained in:
parent
ad58641242
commit
889c3c9801
@ -652,7 +652,10 @@ int32 UIObject::getWidth() const {
|
||||
return _width;
|
||||
}
|
||||
|
||||
int32 UIObject::getHeight() const {
|
||||
// Has to be non-const to allow the virtual override to work,
|
||||
// as other getHeight()-functions currently have the potential
|
||||
// of having side-effects.
|
||||
int32 UIObject::getHeight() {
|
||||
return _height;
|
||||
}
|
||||
|
||||
|
@ -69,7 +69,7 @@ public:
|
||||
TUIObjectType _type;
|
||||
|
||||
int32 getWidth() const;
|
||||
int32 getHeight() const;
|
||||
int32 getHeight() override;
|
||||
void setHeight(int32 height);
|
||||
void setWidth(int32 width);
|
||||
bool isDisabled() const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user