diff --git a/source/gui/IGUITextOwner.h b/source/gui/IGUITextOwner.h index e4e2d7e2c0..2d8bfa48d2 100644 --- a/source/gui/IGUITextOwner.h +++ b/source/gui/IGUITextOwner.h @@ -59,7 +59,7 @@ public: /** * Subscribe the custom JS methods. */ - void CreateJSObject() override; + void CreateJSObject(); /** * @see IGUIObject#HandleMessage() @@ -91,7 +91,7 @@ public: /** * Workaround to avoid a dynamic_cast which can be 80 times slower than this. */ - virtual void* GetTextOwner() override { return this; } + virtual void* GetTextOwner() { return this; } protected: diff --git a/source/gui/scripting/JSInterface_IGUITextOwner.cpp b/source/gui/scripting/JSInterface_IGUITextOwner.cpp index 0720de4213..1020791e18 100644 --- a/source/gui/scripting/JSInterface_IGUITextOwner.cpp +++ b/source/gui/scripting/JSInterface_IGUITextOwner.cpp @@ -24,7 +24,7 @@ JSFunctionSpec JSI_IGUITextOwner::JSI_methods[] = { - JS_FN("getTextSize", GetTextSize, 0, 0), + JS_FN("getTextSize", JSI_IGUITextOwner::GetTextSize, 0, 0), JS_FS_END };