diff --git a/tmpl/parser.cc b/tmpl/parser.cc index 5ac01aa..e55697a 100644 --- a/tmpl/parser.cc +++ b/tmpl/parser.cc @@ -66,7 +66,7 @@ bool I_CLASSNAME::parse(istream & i) /* compile all token regular expressions */ for (int i = 0; i < sizeof(tokens)/sizeof(tokens[0]); i++) { - char * errptr; + const char * errptr; int erroffset; tokens[i].re = pcre_compile(tokens[i].definition, 0, &errptr, &erroffset, NULL); diff --git a/tmpl/parser.h b/tmpl/parser.h index ff4ed1b..873ee72 100644 --- a/tmpl/parser.h +++ b/tmpl/parser.h @@ -13,10 +13,10 @@ class I_CLASSNAME public: I_CLASSNAME(); bool parse(std::istream & in); - char * getError(); { return m_errstr; } + char * getError() { return m_errstr; } protected: - char * m_errstr; + const char * m_errstr; }; #ifdef I_NAMESPACE