summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.h
diff options
context:
space:
mode:
authorMatthias Maennich <matthias@maennich.net>2017-09-19 13:54:08 (GMT)
committerBrad King <brad.king@kitware.com>2017-09-28 11:23:40 (GMT)
commitbb0ad1bea81f60cbbb2c66c2c0ab24ee12db0026 (patch)
tree06db4eb05a227219eef3e265fef60f601640d051 /Source/cmGlobalXCodeGenerator.h
parent8cc33aeaec2798c9ff5a3af23e361ee22fa2ba95 (diff)
downloadCMake-bb0ad1bea81f60cbbb2c66c2c0ab24ee12db0026.zip
CMake-bb0ad1bea81f60cbbb2c66c2c0ab24ee12db0026.tar.gz
CMake-bb0ad1bea81f60cbbb2c66c2c0ab24ee12db0026.tar.bz2
Fix some occurrences using string by value rather than by const&
Fix issues diagnosed by clang-tidy - performance-unnecessary-value-param - performance-unnecessary-copy-initialization Signed-off-by: Matthias Maennich <matthias@maennich.net>
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.h')
-rw-r--r--Source/cmGlobalXCodeGenerator.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.h b/Source/cmGlobalXCodeGenerator.h
index 81d1bd0..e9ca91c 100644
--- a/Source/cmGlobalXCodeGenerator.h
+++ b/Source/cmGlobalXCodeGenerator.h
@@ -106,7 +106,8 @@ protected:
private:
cmXCodeObject* CreateOrGetPBXGroup(cmGeneratorTarget* gtgt,
cmSourceGroup* sg);
- cmXCodeObject* CreatePBXGroup(cmXCodeObject* parent, std::string name);
+ cmXCodeObject* CreatePBXGroup(cmXCodeObject* parent,
+ const std::string& name);
bool CreateGroups(std::vector<cmLocalGenerator*>& generators);
std::string XCodeEscapePath(const std::string& p);
std::string RelativeToSource(const char* p);