summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.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/cmMakefile.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/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index c868159..9e14917 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -1637,12 +1637,12 @@ void cmMakefile::AddSubDirectory(const std::string& srcPath,
const char* cmMakefile::GetCurrentSourceDirectory() const
{
- return this->StateSnapshot.GetDirectory().GetCurrentSource();
+ return this->StateSnapshot.GetDirectory().GetCurrentSource().c_str();
}
const char* cmMakefile::GetCurrentBinaryDirectory() const
{
- return this->StateSnapshot.GetDirectory().GetCurrentBinary();
+ return this->StateSnapshot.GetDirectory().GetCurrentBinary().c_str();
}
std::vector<cmTarget*> cmMakefile::GetImportedTargets() const