diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2018-08-09 15:58:45 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2018-08-12 08:59:21 (GMT) |
commit | ada121e573fb1a4c2d4ea5ee2ee51daca80d4de8 (patch) | |
tree | f7c7c16ff5e3011073d00e4be9b9bc1ff28f96ce /Source/cmLocalGenerator.cxx | |
parent | eba2b13a835000a614f21a1205a598462a4f8843 (diff) | |
download | CMake-ada121e573fb1a4c2d4ea5ee2ee51daca80d4de8.zip CMake-ada121e573fb1a4c2d4ea5ee2ee51daca80d4de8.tar.gz CMake-ada121e573fb1a4c2d4ea5ee2ee51daca80d4de8.tar.bz2 |
cmStateDirectory: use const std::string& for return values
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index d265cab..5e6ce1a 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -2524,12 +2524,12 @@ std::string const& cmLocalGenerator::GetBinaryDirectory() const const char* cmLocalGenerator::GetCurrentBinaryDirectory() const { - return this->StateSnapshot.GetDirectory().GetCurrentBinary(); + return this->StateSnapshot.GetDirectory().GetCurrentBinary().c_str(); } const char* cmLocalGenerator::GetCurrentSourceDirectory() const { - return this->StateSnapshot.GetDirectory().GetCurrentSource(); + return this->StateSnapshot.GetDirectory().GetCurrentSource().c_str(); } std::string cmLocalGenerator::GetTargetDirectory( |