diff options
author | Matthias Maennich <matthias@maennich.net> | 2017-09-19 13:54:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-09-28 11:23:40 (GMT) |
commit | bb0ad1bea81f60cbbb2c66c2c0ab24ee12db0026 (patch) | |
tree | 06db4eb05a227219eef3e265fef60f601640d051 /Source/cmXCodeObject.h | |
parent | 8cc33aeaec2798c9ff5a3af23e361ee22fa2ba95 (diff) | |
download | CMake-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/cmXCodeObject.h')
-rw-r--r-- | Source/cmXCodeObject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmXCodeObject.h b/Source/cmXCodeObject.h index b51aac7..ceed601 100644 --- a/Source/cmXCodeObject.h +++ b/Source/cmXCodeObject.h @@ -95,7 +95,7 @@ public: static void Indent(int level, std::ostream& out); void Print(std::ostream& out); void PrintAttribute(std::ostream& out, const int level, - const std::string separator, const int factor, + const std::string& separator, const int factor, const std::string& name, const cmXCodeObject* object, const cmXCodeObject* parent); virtual void PrintComment(std::ostream&) {} |