cmProp: refactoring: transform alias in class

To handle safely the values used by CMake variables and properties,
introduce the class cmProp as a replacement from the simple pointer
to std::string instance.
This commit is contained in:
Marc Chevrier
2021-08-04 15:08:17 +02:00
parent 350065bb85
commit e5cd39ca80
40 changed files with 484 additions and 226 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ const char* cmCommandArgumentParserHelper::ExpandVariable(const char* var)
if (this->EscapeQuotes && value) {
return this->AddString(cmEscapeQuotes(*value));
}
return this->AddString(cmToCStrSafe(value));
return this->AddString(value);
}
const char* cmCommandArgumentParserHelper::ExpandVariableForAt(const char* var)