summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Martin Hansen <nielsm@indvikleren.dk>2019-04-25 17:28:59 +0200
committerNiels Martin Hansen <nielsm@indvikleren.dk>2019-04-25 17:45:00 +0200
commitd5841109f0e2986739dd120ec5252b4e230418a5 (patch)
tree2bbee72353f2a2cfb504c464ca520925489998c6
parent81d335b081db006ddb883e2452f73984442f9823 (diff)
downloadopenttd-d5841109f0e2986739dd120ec5252b4e230418a5.tar.xz
Fix dcb2571: Missing override keywords
-rw-r--r--src/misc_gui.cpp2
-rw-r--r--src/network/network_gui.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index 0566fffc3..86c17cdcc 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -1003,7 +1003,7 @@ struct QueryStringWindow : public Window
}
}
- virtual void DrawWidget(const Rect &r, int widget) const
+ void DrawWidget(const Rect &r, int widget) const override
{
if (widget != WID_QS_WARNING) return;
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index d39b61dbf..6486f4531 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -2193,7 +2193,7 @@ struct NetworkCompanyPasswordWindow : public Window {
}
}
- virtual void DrawWidget(const Rect &r, int widget) const
+ void DrawWidget(const Rect &r, int widget) const override
{
if (widget != WID_NCP_WARNING) return;