diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2023-05-28 14:27:03 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2023-05-30 14:41:59 (GMT) |
commit | 4fc322bab421a83b12977aadc7dca247db8ae541 (patch) | |
tree | 3e57b548bd2326f3a848eb23ad66da33d28f60b5 /Source/cmFindBase.cxx | |
parent | b0d1ddb7234950374977b83f8dbded806c15b356 (diff) | |
download | CMake-4fc322bab421a83b12977aadc7dca247db8ae541.zip CMake-4fc322bab421a83b12977aadc7dca247db8ae541.tar.gz CMake-4fc322bab421a83b12977aadc7dca247db8ae541.tar.bz2 |
AddCacheEntry: Suppress raw pointer usage
Diffstat (limited to 'Source/cmFindBase.cxx')
-rw-r--r-- | Source/cmFindBase.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmFindBase.cxx b/Source/cmFindBase.cxx index 929c6c1..5e92dd0 100644 --- a/Source/cmFindBase.cxx +++ b/Source/cmFindBase.cxx @@ -509,7 +509,7 @@ void cmFindBase::NormalizeFindResult() // value. if (value != *existingValue || this->AlreadyInCacheWithoutMetaInfo) { this->Makefile->GetCMakeInstance()->AddCacheEntry( - this->VariableName, value, this->VariableDocumentation.c_str(), + this->VariableName, value, this->VariableDocumentation, this->VariableType); if (this->Makefile->GetPolicyStatus(cmPolicies::CMP0126) == cmPolicies::NEW) { @@ -534,7 +534,7 @@ void cmFindBase::NormalizeFindResult() if (this->StoreResultInCache) { if (this->AlreadyInCacheWithoutMetaInfo) { this->Makefile->AddCacheDefinition(this->VariableName, "", - this->VariableDocumentation.c_str(), + this->VariableDocumentation, this->VariableType); if (this->Makefile->GetPolicyStatus(cmPolicies::CMP0126) == cmPolicies::NEW && @@ -564,7 +564,7 @@ void cmFindBase::StoreFindResult(const std::string& value) if (!value.empty()) { if (this->StoreResultInCache) { this->Makefile->AddCacheDefinition(this->VariableName, value, - this->VariableDocumentation.c_str(), + this->VariableDocumentation, this->VariableType, force); if (updateNormalVariable && this->Makefile->IsNormalDefinitionSet(this->VariableName)) { @@ -580,7 +580,7 @@ void cmFindBase::StoreFindResult(const std::string& value) auto notFound = cmStrCat(this->VariableName, "-NOTFOUND"); if (this->StoreResultInCache) { this->Makefile->AddCacheDefinition(this->VariableName, notFound, - this->VariableDocumentation.c_str(), + this->VariableDocumentation, this->VariableType, force); if (updateNormalVariable && this->Makefile->IsNormalDefinitionSet(this->VariableName)) { |