summaryrefslogtreecommitdiffstats
path: root/Source/cmState.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-07-19 08:38:54 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-07-24 09:11:25 (GMT)
commit9b5cc4253135c7811936b05525e013e04a390d02 (patch)
tree08509cdff27333c66e26d8a55a171aeb7c1ebdc1 /Source/cmState.cxx
parente268840c0a5db59f97c0fbc77aaae621520b83a3 (diff)
downloadCMake-9b5cc4253135c7811936b05525e013e04a390d02.zip
CMake-9b5cc4253135c7811936b05525e013e04a390d02.tar.gz
CMake-9b5cc4253135c7811936b05525e013e04a390d02.tar.bz2
cmDefinitions: Remove const char* based Set method
- Removes `cmDefinitions::Set` method overload that takes a `const char*` value argument. - Updates calls to `cmDefinitions::Set` to use the `cm::string_view` based version instead.
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r--Source/cmState.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx
index 0b12a65..6f9c935 100644
--- a/Source/cmState.cxx
+++ b/Source/cmState.cxx
@@ -308,8 +308,8 @@ cmStateSnapshot cmState::Reset()
pos->Parent = this->VarTree.Root();
pos->Root = this->VarTree.Root();
- pos->Vars->Set("CMAKE_SOURCE_DIR", srcDir.c_str());
- pos->Vars->Set("CMAKE_BINARY_DIR", binDir.c_str());
+ pos->Vars->Set("CMAKE_SOURCE_DIR", srcDir);
+ pos->Vars->Set("CMAKE_BINARY_DIR", binDir);
}
this->DefineProperty("RULE_LAUNCH_COMPILE", cmProperty::DIRECTORY, "", "",