summaryrefslogtreecommitdiff
path: root/src/widgets
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2019-03-10 00:12:45 +0000
committerCharles Pigott <charlespigott@googlemail.com>2019-03-10 09:20:11 +0000
commitfb35cb5ed2735ad22d8a2bee9df2a174994ed319 (patch)
treee8370ce0d9de9b1b3a16d248ca7e2d4a5a4e1037 /src/widgets
parent303cfd86a301bcd66a6fec48dec944afd2174231 (diff)
downloadopenttd-fb35cb5ed2735ad22d8a2bee9df2a174994ed319.tar.xz
Remove: Unnecessary virtual destructors on drop down list items.
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/dropdown_type.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/widgets/dropdown_type.h b/src/widgets/dropdown_type.h
index bc225dadf..a5fe27f64 100644
--- a/src/widgets/dropdown_type.h
+++ b/src/widgets/dropdown_type.h
@@ -43,7 +43,6 @@ public:
StringID string; ///< String ID of item
DropDownListStringItem(StringID string, int result, bool masked) : DropDownListItem(result, masked), string(string) {}
- virtual ~DropDownListStringItem() {}
virtual bool Selectable() const { return true; }
virtual uint Width() const;
@@ -61,7 +60,6 @@ public:
uint64 decode_params[10]; ///< Parameters of the string
DropDownListParamStringItem(StringID string, int result, bool masked) : DropDownListStringItem(string, result, masked) {}
- virtual ~DropDownListParamStringItem() {}
virtual StringID String() const;
virtual void SetParam(uint index, uint64 value) { decode_params[index] = value; }
@@ -75,7 +73,6 @@ public:
const char *raw_string;
DropDownListCharStringItem(const char *raw_string, int result, bool masked) : DropDownListStringItem(STR_JUST_RAW_STRING, result, masked), raw_string(raw_string) {}
- virtual ~DropDownListCharStringItem() {}
virtual StringID String() const;
};