summaryrefslogtreecommitdiff
path: root/lib/configuration.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/configuration.cc')
-rw-r--r--lib/configuration.cc12
1 files changed, 6 insertions, 6 deletions
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<std::string> *retval)
+int Configuration::get(const char *node, std::vector<std::string> *retval)
{/*
try {
*retval = lua.getString(node);
@@ -67,7 +67,7 @@ int Configuration::get(char *node, std::vector<std::string> *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);