diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2011-10-27 12:13:03 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2011-10-27 12:13:03 +0200 |
commit | 408e980a83437ed621fa99ae0cd8d2bc6579f5ba (patch) | |
tree | 7f73587d84487f989bca966a22fc1c85c3f8397b /lib/liblua_wrapper.cc | |
parent | 7d8e6af2df12442c1c133956b3acf3fdbc496423 (diff) |
Fix warnings and error (due to bitrot)master-old
Diffstat (limited to 'lib/liblua_wrapper.cc')
-rw-r--r-- | lib/liblua_wrapper.cc | 10 |
1 files changed, 5 insertions, 5 deletions
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); |