summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-10-30 18:50:19 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2016-10-30 18:50:19 (GMT)
commit5214bb354b508cafc859b4a05b4e5f8ed44767e0 (patch)
treefbf3447860426ec363b14e548b4fec709b6ea12d /Source/cmGlobalUnixMakefileGenerator3.cxx
parent602b78aa79f6d99e775fa0a84fb441156d192833 (diff)
downloadCMake-5214bb354b508cafc859b4a05b4e5f8ed44767e0.zip
CMake-5214bb354b508cafc859b4a05b4e5f8ed44767e0.tar.gz
CMake-5214bb354b508cafc859b4a05b4e5f8ed44767e0.tar.bz2
Avoid some copies
Diffstat (limited to 'Source/cmGlobalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmGlobalUnixMakefileGenerator3.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx
index 17d49e8..90caaf9 100644
--- a/Source/cmGlobalUnixMakefileGenerator3.cxx
+++ b/Source/cmGlobalUnixMakefileGenerator3.cxx
@@ -963,7 +963,7 @@ void cmGlobalUnixMakefileGenerator3::WriteHelpRule(
(type == cmStateEnums::OBJECT_LIBRARY) ||
(type == cmStateEnums::GLOBAL_TARGET) ||
(type == cmStateEnums::UTILITY)) {
- std::string name = target->GetName();
+ std::string const& name = target->GetName();
if (emittedTargets.insert(name).second) {
path = "... ";
path += name;