summaryrefslogtreecommitdiff
path: root/Source/cmDepends.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2018-09-05 06:41:28 -0400
committerBrad King <brad.king@kitware.com>2018-09-18 11:16:46 -0400
commitf4ff60a803170311f49511a60a381eef8b78c5dd (patch)
tree14e5ff6fb69f5c0fc7e815cd612dab1c0ba1e299 /Source/cmDepends.cxx
parent42212f7539040139ecec092547b7d58ef12a4d72 (diff)
downloadcmake-f4ff60a803170311f49511a60a381eef8b78c5dd.tar.gz
cmMakefile: Make GetSafeDefinition return std::string const&
Diffstat (limited to 'Source/cmDepends.cxx')
-rw-r--r--Source/cmDepends.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmDepends.cxx b/Source/cmDepends.cxx
index 4716e14d6a..6f1afd7bcb 100644
--- a/Source/cmDepends.cxx
+++ b/Source/cmDepends.cxx
@@ -36,7 +36,7 @@ bool cmDepends::Write(std::ostream& makeDepends, std::ostream& internalDepends)
std::string srcLang = "CMAKE_DEPENDS_CHECK_";
srcLang += this->Language;
cmMakefile* mf = this->LocalGenerator->GetMakefile();
- const char* srcStr = mf->GetSafeDefinition(srcLang);
+ std::string const& srcStr = mf->GetSafeDefinition(srcLang);
std::vector<std::string> pairs;
cmSystemTools::ExpandListArgument(srcStr, pairs);