From 43e99491a76bb85faf60c004e84b6c2b14cf41e7 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 26 Apr 2009 17:05:18 +0200 Subject: Standardize on the position of the const keyword Same as for the client. --- src/scripting/luascript.hpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/scripting/luascript.hpp') diff --git a/src/scripting/luascript.hpp b/src/scripting/luascript.hpp index d4dc116e..398fbecf 100644 --- a/src/scripting/luascript.hpp +++ b/src/scripting/luascript.hpp @@ -36,7 +36,8 @@ class LuaScript: public Script { public: /** - * Constructor. + * Constructor. Initializes a new Lua state, registers the native API + * and loads the libtmw.lua file. */ LuaScript(); @@ -45,9 +46,9 @@ class LuaScript: public Script */ ~LuaScript(); - void load(char const *); + void load(const char *); - void prepare(std::string const &); + void prepare(const std::string &); void push(int); @@ -57,11 +58,11 @@ class LuaScript: public Script int execute(); - static void getQuestCallback(Character *, std::string const &, - std::string const &, void *); + static void getQuestCallback(Character *, const std::string &, + const std::string &, void *); - static void getPostCallback(Character *, std::string const &, - std::string const &, void *); + static void getPostCallback(Character *, const std::string &, + const std::string &, void *); void processDeathEvent(Being* thing); -- cgit v1.2.3-60-g2f50