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/configuration.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/configuration.cc') diff --git a/lib/configuration.cc b/lib/configuration.cc index 64153d9..7605403 100644 --- a/lib/configuration.cc +++ b/lib/configuration.cc @@ -32,7 +32,7 @@ const char preload[] = "c = 42\n" "d = \"42\"\n"; -Configuration::Configuration(char *configfile) +Configuration::Configuration(const char *configfile) { // Preload default values. lua.loadBuffer((char*)preload); @@ -45,7 +45,7 @@ Configuration::~Configuration() { } -int Configuration::get(char *node, std::string *retval) +int Configuration::get(const char *node, std::string *retval) { try { *retval = lua.getString(node); @@ -55,7 +55,7 @@ int Configuration::get(char *node, std::string *retval) return 0; } -int Configuration::get(char *node, std::vector *retval) +int Configuration::get(const char *node, std::vector *retval) {/* try { *retval = lua.getString(node); @@ -67,7 +67,7 @@ int Configuration::get(char *node, std::vector *retval) return 1; } -int Configuration::get(char *node, double *retval) +int Configuration::get(const char *node, double *retval) { try { *retval = lua.getReal(node); @@ -77,7 +77,7 @@ int Configuration::get(char *node, double *retval) return 0; } -int Configuration::get(char *node, int *retval) +int Configuration::get(const char *node, int *retval) { try { *retval = lua.getInteger(node); @@ -87,7 +87,7 @@ int Configuration::get(char *node, int *retval) return 0; } -int Configuration::get(char *node, bool *retval) +int Configuration::get(const char *node, bool *retval) { try { *retval = lua.getBoolean(node); -- cgit v1.2.3