diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2018-09-06 00:08:17 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2018-09-06 00:08:17 (GMT) |
commit | 437d0c16c72a45da8c81919f953859f5af71b19b (patch) | |
tree | 2a456a93a0eddf55d46313bd6d1bfbe668324d22 /Source/cmState.cxx | |
parent | b0f769ad2da5162f7f65e13061b18b4538f06d9a (diff) | |
download | CMake-437d0c16c72a45da8c81919f953859f5af71b19b.zip CMake-437d0c16c72a45da8c81919f953859f5af71b19b.tar.gz CMake-437d0c16c72a45da8c81919f953859f5af71b19b.tar.bz2 |
cmStateSnapshot::GetDefinition(): Return std::string const*
Expose std::string type used internally in cmDefinitions instead of const char*
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r-- | Source/cmState.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx index 5651594..89738f4 100644 --- a/Source/cmState.cxx +++ b/Source/cmState.cxx @@ -298,9 +298,9 @@ cmStateSnapshot cmState::Reset() { std::string srcDir = - cmDefinitions::Get("CMAKE_SOURCE_DIR", pos->Vars, pos->Root); + *cmDefinitions::Get("CMAKE_SOURCE_DIR", pos->Vars, pos->Root); std::string binDir = - cmDefinitions::Get("CMAKE_BINARY_DIR", pos->Vars, pos->Root); + *cmDefinitions::Get("CMAKE_BINARY_DIR", pos->Vars, pos->Root); this->VarTree.Clear(); pos->Vars = this->VarTree.Push(this->VarTree.Root()); pos->Parent = this->VarTree.Root(); |