From 6c55213cd5a63ff198a25573ad38672e7faa02ce Mon Sep 17 00:00:00 2001 From: Einar Johan Trøan Sømåen Date: Thu, 18 Apr 2013 18:04:51 +0200 Subject: WINTERMUTE: Add 'override' to most Script-related functions. --- engines/wintermute/ui/ui_window.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engines/wintermute/ui/ui_window.h') diff --git a/engines/wintermute/ui/ui_window.h b/engines/wintermute/ui/ui_window.h index ae035c65c7..70799cea25 100644 --- a/engines/wintermute/ui/ui_window.h +++ b/engines/wintermute/ui/ui_window.h @@ -68,10 +68,10 @@ public: bool enableWidget(const char *name, bool enable = true); Rect32 _titleRect; Rect32 _dragRect; - virtual bool display(int offsetX = 0, int offsetY = 0); + virtual bool display(int offsetX = 0, int offsetY = 0) override; UIWindow(BaseGame *inGame); virtual ~UIWindow(); - virtual bool handleKeypress(Common::Event *event, bool printable = false); + virtual bool handleKeypress(Common::Event *event, bool printable = false) override; BaseArray _widgets; TTextAlign _titleAlign; bool loadFile(const char *filename); @@ -80,12 +80,12 @@ public: BaseFont *_fontInactive; BaseSprite *_imageInactive; virtual bool listen(BaseScriptHolder *param1, uint32 param2); - virtual bool saveAsText(BaseDynamicBuffer *buffer, int indent); + virtual bool saveAsText(BaseDynamicBuffer *buffer, int indent) override; // scripting interface - virtual ScValue *scGetProperty(const Common::String &name); - virtual bool scSetProperty(const char *name, ScValue *value); - virtual bool scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack, const char *name); + virtual ScValue *scGetProperty(const Common::String &name) override; + virtual bool scSetProperty(const char *name, ScValue *value) override; + virtual bool scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack, const char *name) override; virtual const char *scToString(); }; -- cgit v1.2.3