summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2019-03-24 16:49:26 +0000
committerCharles Pigott <charlespigott@googlemail.com>2019-03-24 17:38:42 +0000
commit3860a2ce2acf3e295af087c4ca3bb409a61632fc (patch)
tree1876fe9d458e9c7151ccd53d3b2f3689d442f789
parent07de9d6c3f48b6a3b92e11d553aca145546c62ef (diff)
downloadopenttd-3860a2ce2acf3e295af087c4ca3bb409a61632fc.tar.xz
Codechange: Use override keyword for smallmap window.
-rw-r--r--src/smallmap_gui.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/smallmap_gui.h b/src/smallmap_gui.h
index 486f2a652..a167d8198 100644
--- a/src/smallmap_gui.h
+++ b/src/smallmap_gui.h
@@ -180,17 +180,17 @@ public:
void SmallMapCenterOnCurrentPos();
Point GetStationMiddle(const Station *st) const;
- virtual void SetStringParameters(int widget) const;
- virtual void OnInit();
- virtual void OnPaint();
- virtual void DrawWidget(const Rect &r, int widget) const;
- virtual void OnClick(Point pt, int widget, int click_count);
- virtual void OnInvalidateData(int data = 0, bool gui_scope = true);
- virtual bool OnRightClick(Point pt, int widget);
- virtual void OnMouseWheel(int wheel);
- virtual void OnRealtimeTick(uint delta_ms);
- virtual void OnScroll(Point delta);
- virtual void OnMouseOver(Point pt, int widget);
+ void SetStringParameters(int widget) const override;
+ void OnInit() override;
+ void OnPaint() override;
+ void DrawWidget(const Rect &r, int widget) const override;
+ void OnClick(Point pt, int widget, int click_count) override;
+ void OnInvalidateData(int data = 0, bool gui_scope = true) override;
+ bool OnRightClick(Point pt, int widget) override;
+ void OnMouseWheel(int wheel) override;
+ void OnRealtimeTick(uint delta_ms) override;
+ void OnScroll(Point delta) override;
+ void OnMouseOver(Point pt, int widget) override;
};
#endif /* SMALLMAP_GUI_H */