summaryrefslogtreecommitdiff
path: root/src/widgets
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/widgets
parentaf7d9020a15c1b1a14b3981ac73c70d2e58cc877 (diff)
downloadopenttd-aafce475963e2d2df59de9b02242a04856e78f93.tar.xz
Codechange: Use override specifier for DropDownListItem classes.
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/dropdown_type.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/widgets/dropdown_type.h b/src/widgets/dropdown_type.h
index 8300dd26d..56510b0ab 100644
--- a/src/widgets/dropdown_type.h
+++ b/src/widgets/dropdown_type.h
@@ -44,9 +44,9 @@ public:
DropDownListStringItem(StringID string, int result, bool masked) : DropDownListItem(result, masked), string(string) {}
- virtual bool Selectable() const { return true; }
- virtual uint Width() const;
- virtual void Draw(int left, int right, int top, int bottom, bool sel, Colours bg_colour) const;
+ bool Selectable() const override { return true; }
+ uint Width() const override;
+ void Draw(int left, int right, int top, int bottom, bool sel, Colours bg_colour) const override;
virtual StringID String() const { return this->string; }
static int CDECL NatSortFunc(const DropDownListItem * const *first, const DropDownListItem * const *second);
@@ -61,8 +61,8 @@ public:
DropDownListParamStringItem(StringID string, int result, bool masked) : DropDownListStringItem(string, result, masked) {}
- virtual StringID String() const;
- virtual void SetParam(uint index, uint64 value) { decode_params[index] = value; }
+ StringID String() const override;
+ void SetParam(uint index, uint64 value) { decode_params[index] = value; }
};
/**
@@ -74,7 +74,7 @@ public:
DropDownListCharStringItem(const char *raw_string, int result, bool masked) : DropDownListStringItem(STR_JUST_RAW_STRING, result, masked), raw_string(raw_string) {}
- virtual StringID String() const;
+ StringID String() const override;
};
/**