diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2017-10-25 15:03:45 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2017-10-25 17:56:33 (GMT) |
commit | 98cb9f3ee98261d0e7a591ba3b1971d49f1a2ee8 (patch) | |
tree | d1a14c81663de904930990fb702de1d7e987b72f /Source/cmCommandArgumentParserHelper.h | |
parent | 206354ac4c2b0e245cc02f3c9f8b82990f829ee8 (diff) | |
download | CMake-98cb9f3ee98261d0e7a591ba3b1971d49f1a2ee8.zip CMake-98cb9f3ee98261d0e7a591ba3b1971d49f1a2ee8.tar.gz CMake-98cb9f3ee98261d0e7a591ba3b1971d49f1a2ee8.tar.bz2 |
cmCommandArgumentParserHelper: constify some char* values
Diffstat (limited to 'Source/cmCommandArgumentParserHelper.h')
-rw-r--r-- | Source/cmCommandArgumentParserHelper.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmCommandArgumentParserHelper.h b/Source/cmCommandArgumentParserHelper.h index cb2a390..d0d2db4 100644 --- a/Source/cmCommandArgumentParserHelper.h +++ b/Source/cmCommandArgumentParserHelper.h @@ -17,7 +17,7 @@ class cmCommandArgumentParserHelper public: struct ParserType { - char* str; + const char* str; }; cmCommandArgumentParserHelper(); @@ -35,11 +35,11 @@ public: void Error(const char* str); // For yacc - char* CombineUnions(char* in1, char* in2); + const char* CombineUnions(const char* in1, const char* in2); - char* ExpandSpecialVariable(const char* key, const char* var); - char* ExpandVariable(const char* var); - char* ExpandVariableForAt(const char* var); + const char* ExpandSpecialVariable(const char* key, const char* var); + const char* ExpandVariable(const char* var); + const char* ExpandVariableForAt(const char* var); void SetResult(const char* value); void SetMakefile(const cmMakefile* mf); @@ -69,7 +69,7 @@ private: void Print(const char* place, const char* str); void SafePrintMissing(const char* str, int line, int cnt); - char* AddString(const std::string& str); + const char* AddString(const std::string& str); void CleanupParser(); void SetError(std::string const& msg); |