stringapi: Use strings for variable names

Variable names are always generated by CMake and should never be NULL.
This commit is contained in:
Ben Boeckel
2014-02-04 16:06:56 -05:00
committed by Brad King
parent ec97ed7d0c
commit 3742bb0d32
38 changed files with 142 additions and 156 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ public:
// Get a definition from the makefile. If it doesn't exist,
// return the original string.
static const char* GetVariableOrString(const char* str,
static const char* GetVariableOrString(const std::string& str,
const cmMakefile* mf);
cmTypeMacro(cmIfCommand, cmCommand);