From 29ae5ac36d4ffc520232ff393b2455130ec0227e Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 27 Oct 2011 15:50:11 +0200 Subject: fix warnings/errors. --- src/miav_config.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/miav_config.h') diff --git a/src/miav_config.h b/src/miav_config.h index a8658f1..ddd1375 100644 --- a/src/miav_config.h +++ b/src/miav_config.h @@ -64,13 +64,13 @@ typedef struct __cfg { class MiavConfig { public: - MiavConfig(char *file, Info *info = NULL); + MiavConfig(const char *file, Info *info = NULL); ~MiavConfig(); - int readInt(char *node); - bool readBool(char *node); - string *readString(char *node); - float readFloat(char *node); + int readInt(const char *node); + bool readBool(const char *node); + string *readString(const char *node); + float readFloat(const char *node); protected: Info *info; @@ -88,8 +88,8 @@ protected: char *strip(char* conf); #endif - void parseError(char* msg, _cfg *cfg); - _cfg *findNode(char* node); + void parseError(const char* msg, _cfg *cfg); + _cfg *findNode(const char* node); _cfg *configs; }; -- cgit v1.2.3