summaryrefslogtreecommitdiff
path: root/src/toolbar_gui.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2019-03-04 07:28:52 +0000
committerMichael Lutz <michi@icosahedron.de>2019-03-24 16:10:04 +0100
commitaafce475963e2d2df59de9b02242a04856e78f93 (patch)
treedc81771c0eb1316513d0119aa361b0608a10365a /src/toolbar_gui.cpp
parentaf7d9020a15c1b1a14b3981ac73c70d2e58cc877 (diff)
downloadopenttd-aafce475963e2d2df59de9b02242a04856e78f93.tar.xz
Codechange: Use override specifier for DropDownListItem classes.
Diffstat (limited to 'src/toolbar_gui.cpp')
-rw-r--r--src/toolbar_gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp
index c3bf5953d..c3555f107 100644
--- a/src/toolbar_gui.cpp
+++ b/src/toolbar_gui.cpp
@@ -127,12 +127,12 @@ public:
this->lock_size = GetSpriteSize(SPR_LOCK);
}
- bool Selectable() const
+ bool Selectable() const override
{
return true;
}
- uint Width() const
+ uint Width() const override
{
CompanyID company = (CompanyID)this->result;
SetDParam(0, company);
@@ -140,12 +140,12 @@ public:
return GetStringBoundingBox(STR_COMPANY_NAME_COMPANY_NUM).width + this->icon_size.width + this->lock_size.width + 6;
}
- uint Height(uint width) const
+ uint Height(uint width) const override
{
return max(max(this->icon_size.height, this->lock_size.height) + 2U, (uint)FONT_HEIGHT_NORMAL);
}
- void Draw(int left, int right, int top, int bottom, bool sel, Colours bg_colour) const
+ void Draw(int left, int right, int top, int bottom, bool sel, Colours bg_colour) const override
{
CompanyID company = (CompanyID)this->result;
bool rtl = _current_text_dir == TD_RTL;