diff options
Diffstat (limited to 'src/miav_config.h')
-rw-r--r-- | src/miav_config.h | 14 |
1 files changed, 7 insertions, 7 deletions
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; }; |