diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2014-05-23 18:41:46 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2014-06-05 16:44:04 (GMT) |
commit | d46c650d676420a3053ba39e7af8808d581d04ab (patch) | |
tree | e25c57afe9794bf3c48b5b20ff8658b34cbc0103 /Source/cmInstalledFile.cxx | |
parent | 88818b680549651b6531a6648396d749b759afb2 (diff) | |
download | CMake-d46c650d676420a3053ba39e7af8808d581d04ab.zip CMake-d46c650d676420a3053ba39e7af8808d581d04ab.tar.gz CMake-d46c650d676420a3053ba39e7af8808d581d04ab.tar.bz2 |
cmMakefile: return a backtrace
This allows backtraces to be fully controlled by the makefile rather
than externally (and makes changing how they are manipulated easier).
Diffstat (limited to 'Source/cmInstalledFile.cxx')
-rw-r--r-- | Source/cmInstalledFile.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmInstalledFile.cxx b/Source/cmInstalledFile.cxx index 7e78ec0..6860e00 100644 --- a/Source/cmInstalledFile.cxx +++ b/Source/cmInstalledFile.cxx @@ -32,8 +32,7 @@ cmInstalledFile::~cmInstalledFile() //---------------------------------------------------------------------------- void cmInstalledFile::SetName(cmMakefile* mf, const std::string& name) { - cmListFileBacktrace backtrace; - mf->GetBacktrace(backtrace); + cmListFileBacktrace backtrace = mf->GetBacktrace(); cmGeneratorExpression ge(backtrace); this->Name = name; @@ -70,8 +69,7 @@ void cmInstalledFile::SetProperty(cmMakefile const* mf, void cmInstalledFile::AppendProperty(cmMakefile const* mf, const std::string& prop, const char* value, bool /*asString*/) { - cmListFileBacktrace backtrace; - mf->GetBacktrace(backtrace); + cmListFileBacktrace backtrace = mf->GetBacktrace(); cmGeneratorExpression ge(backtrace); Property& property = this->Properties[prop]; |