diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2018-08-24 13:43:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-08-27 19:48:57 (GMT) |
commit | 50fbfee3a02e7099a3909d81597f4b8047847ece (patch) | |
tree | c8f6053448e3428b1d9f32c0c1141c41cd1d9f59 /Source/cmLocalGenerator.cxx | |
parent | e33c6c357b61ed0cc5b9f7c01e4ea04deca26b39 (diff) | |
download | CMake-50fbfee3a02e7099a3909d81597f4b8047847ece.zip CMake-50fbfee3a02e7099a3909d81597f4b8047847ece.tar.gz CMake-50fbfee3a02e7099a3909d81597f4b8047847ece.tar.bz2 |
cmLocalGenerator: return directories as const std::string&
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 5e6ce1a..dd0f7d6 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -2522,14 +2522,14 @@ std::string const& cmLocalGenerator::GetBinaryDirectory() const return this->GetCMakeInstance()->GetHomeOutputDirectory(); } -const char* cmLocalGenerator::GetCurrentBinaryDirectory() const +std::string const& cmLocalGenerator::GetCurrentBinaryDirectory() const { - return this->StateSnapshot.GetDirectory().GetCurrentBinary().c_str(); + return this->StateSnapshot.GetDirectory().GetCurrentBinary(); } -const char* cmLocalGenerator::GetCurrentSourceDirectory() const +std::string const& cmLocalGenerator::GetCurrentSourceDirectory() const { - return this->StateSnapshot.GetDirectory().GetCurrentSource().c_str(); + return this->StateSnapshot.GetDirectory().GetCurrentSource(); } std::string cmLocalGenerator::GetTargetDirectory( |