diff options
author | Einar Johan Trøan Sømåen | 2013-10-28 18:37:20 +0100 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2013-10-28 18:37:20 +0100 |
commit | 889c3c9801e714f7c2de7a73cc877835a0b1fed5 (patch) | |
tree | 00a54955b9e5bcbd3f8efdd9c00092b8d5bca84b /engines/wintermute/ui/ui_object.cpp | |
parent | ad586412425e66e0e678f0cfd7b8c78c58a8a855 (diff) | |
download | scummvm-rg350-889c3c9801e714f7c2de7a73cc877835a0b1fed5.tar.gz scummvm-rg350-889c3c9801e714f7c2de7a73cc877835a0b1fed5.tar.bz2 scummvm-rg350-889c3c9801e714f7c2de7a73cc877835a0b1fed5.zip |
WINTERMUTE: Deconstify UIObject::getHeight() to fix a shadowed overload.
Diffstat (limited to 'engines/wintermute/ui/ui_object.cpp')
-rw-r--r-- | engines/wintermute/ui/ui_object.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/wintermute/ui/ui_object.cpp b/engines/wintermute/ui/ui_object.cpp index a8da89b011..fbe18ef6ad 100644 --- a/engines/wintermute/ui/ui_object.cpp +++ b/engines/wintermute/ui/ui_object.cpp @@ -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; } |