diff options
author | Brad King <brad.king@kitware.com> | 2017-11-15 15:32:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-11-15 15:47:07 (GMT) |
commit | c871446abc9f9f33bd302ed059037d719eb9e2d9 (patch) | |
tree | 7189bca12aad188ed10b739f1c98607891bf7266 /Source/cmGhsMultiTargetGenerator.cxx | |
parent | 1fe9e49bad0ad4f540ceda028106d9af89084946 (diff) | |
download | CMake-c871446abc9f9f33bd302ed059037d719eb9e2d9.zip CMake-c871446abc9f9f33bd302ed059037d719eb9e2d9.tar.gz CMake-c871446abc9f9f33bd302ed059037d719eb9e2d9.tar.bz2 |
cmSourceGroup: Return strings from GetName and GetFullName
Diffstat (limited to 'Source/cmGhsMultiTargetGenerator.cxx')
-rw-r--r-- | Source/cmGhsMultiTargetGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGhsMultiTargetGenerator.cxx b/Source/cmGhsMultiTargetGenerator.cxx index a31e415..b3e3393 100644 --- a/Source/cmGhsMultiTargetGenerator.cxx +++ b/Source/cmGhsMultiTargetGenerator.cxx @@ -489,7 +489,7 @@ void cmGhsMultiTargetGenerator::WriteSources( char const* sourceFullPath = (*si)->GetFullPath().c_str(); cmSourceGroup* sourceGroup = this->Makefile->FindSourceGroup(sourceFullPath, sourceGroups); - std::string sgPath(sourceGroup->GetFullName()); + std::string sgPath = sourceGroup->GetFullName(); cmSystemTools::ConvertToUnixSlashes(sgPath); cmGlobalGhsMultiGenerator::AddFilesUpToPath( this->GetFolderBuildStreams(), &this->FolderBuildStreams, @@ -608,7 +608,7 @@ std::string cmGhsMultiTargetGenerator::ComputeLongestObjectDirectory( cmSourceGroup* sourceGroup = localGhsMultiGenerator->GetMakefile()->FindSourceGroup(sourceFullPath, sourceGroups); - std::string const sgPath(sourceGroup->GetFullName()); + std::string const& sgPath = sourceGroup->GetFullName(); dir_max += sgPath; dir_max += "/Objs/libs/"; dir_max += generatorTarget->Target->GetName(); |