summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-05-31 13:34:46 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-05-31 13:35:25 (GMT)
commitc4f273e722f76a62183265200a3dd18a50b1a60a (patch)
treef97b761f77deaf149d0302c84533e85d07de19ce /Source/cmake.cxx
parent826825fe34df12e7e9b5d46a9df0011b0c70b1ba (diff)
parent4fc322bab421a83b12977aadc7dca247db8ae541 (diff)
downloadCMake-c4f273e722f76a62183265200a3dd18a50b1a60a.zip
CMake-c4f273e722f76a62183265200a3dd18a50b1a60a.tar.gz
CMake-c4f273e722f76a62183265200a3dd18a50b1a60a.tar.bz2
Merge topic 'AddCacheEntry-suppress-raw-pointer-usage'
4fc322bab4 AddCacheEntry: Suppress raw pointer usage Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8520
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 3792791..f30d4d3 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -2266,7 +2266,7 @@ int cmake::HandleDeleteCacheVariables(const std::string& var)
this->LoadCache();
// restore the changed compilers
for (SaveCacheEntry const& i : saved) {
- this->AddCacheEntry(i.key, i.value, i.help.c_str(), i.type);
+ this->AddCacheEntry(i.key, i.value, i.help, i.type);
}
cmSystemTools::Message(warning.str());
// avoid reconfigure if there were errors
@@ -2888,7 +2888,7 @@ int cmake::Generate()
}
void cmake::AddCacheEntry(const std::string& key, cmValue value,
- const char* helpString, int type)
+ cmValue helpString, int type)
{
this->State->AddCacheEntry(key, value, helpString,
static_cast<cmStateEnums::CacheEntryType>(type));