From 408e980a83437ed621fa99ae0cd8d2bc6579f5ba Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 27 Oct 2011 12:13:03 +0200 Subject: Fix warnings and error (due to bitrot) --- lib/liblua_wrapper.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/liblua_wrapper.cc') diff --git a/lib/liblua_wrapper.cc b/lib/liblua_wrapper.cc index 9e06be9..80a05d6 100644 --- a/lib/liblua_wrapper.cc +++ b/lib/liblua_wrapper.cc @@ -39,7 +39,7 @@ LibLUAWrapper::~LibLUAWrapper() lua_close(L); } -int LibLUAWrapper::loadFile(char *fname) +int LibLUAWrapper::loadFile(const char *fname) { int s; @@ -112,7 +112,7 @@ int LibLUAWrapper::loadBuffer(char *buffer) return 0; } -int LibLUAWrapper::getInteger(char *name) +int LibLUAWrapper::getInteger(const char *name) { lua_getfield(L, LUA_GLOBALSINDEX, name); @@ -125,7 +125,7 @@ int LibLUAWrapper::getInteger(char *name) return val; } -double LibLUAWrapper::getReal(char *name) +double LibLUAWrapper::getReal(const char *name) { lua_getfield(L, LUA_GLOBALSINDEX, name); @@ -138,7 +138,7 @@ double LibLUAWrapper::getReal(char *name) return val; } -bool LibLUAWrapper::getBoolean(char *name) +bool LibLUAWrapper::getBoolean(const char *name) { lua_getfield(L, LUA_GLOBALSINDEX, name); @@ -151,7 +151,7 @@ bool LibLUAWrapper::getBoolean(char *name) return val; } -std::string LibLUAWrapper::getString(char *name) +std::string LibLUAWrapper::getString(const char *name) { lua_getfield(L, LUA_GLOBALSINDEX, name); -- cgit v1.2.3