summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2018-08-09 15:58:45 (GMT)
committerCraig Scott <craig.scott@crascit.com>2018-08-12 08:59:21 (GMT)
commitada121e573fb1a4c2d4ea5ee2ee51daca80d4de8 (patch)
treef7c7c16ff5e3011073d00e4be9b9bc1ff28f96ce /Source/cmTarget.cxx
parenteba2b13a835000a614f21a1205a598462a4f8843 (diff)
downloadCMake-ada121e573fb1a4c2d4ea5ee2ee51daca80d4de8.zip
CMake-ada121e573fb1a4c2d4ea5ee2ee51daca80d4de8.tar.gz
CMake-ada121e573fb1a4c2d4ea5ee2ee51daca80d4de8.tar.bz2
cmStateDirectory: use const std::string& for return values
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 380ac88..cc5a176 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -1415,13 +1415,15 @@ const char* cmTarget::GetProperty(const std::string& prop) const
return this->GetMakefile()
->GetStateSnapshot()
.GetDirectory()
- .GetCurrentBinary();
+ .GetCurrentBinary()
+ .c_str();
}
if (prop == propSOURCE_DIR) {
return this->GetMakefile()
->GetStateSnapshot()
.GetDirectory()
- .GetCurrentSource();
+ .GetCurrentSource()
+ .c_str();
}
}