summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-04-21 19:40:54 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-04-21 19:40:54 (GMT)
commitb799ca42b8a2fdf7d92a75c0edc3292934a3926a (patch)
tree4c0234d4a1a07c43f418eb1dbbe9276c44271fc4
parent7d6090aec41770414c4f8b9fd78823f1322381d8 (diff)
downloadCMake-b799ca42b8a2fdf7d92a75c0edc3292934a3926a.zip
CMake-b799ca42b8a2fdf7d92a75c0edc3292934a3926a.tar.gz
CMake-b799ca42b8a2fdf7d92a75c0edc3292934a3926a.tar.bz2
cmAlgorithms: pass std::string by const ref
-rw-r--r--Source/cmAlgorithms.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmAlgorithms.h b/Source/cmAlgorithms.h
index 70581ad..4adfe23 100644
--- a/Source/cmAlgorithms.h
+++ b/Source/cmAlgorithms.h
@@ -360,7 +360,8 @@ std::string cmWrap(std::string const& prefix, Range const& r,
}
template <typename Range>
-std::string cmWrap(char prefix, Range const& r, char suffix, std::string sep)
+std::string cmWrap(char prefix, Range const& r, char suffix,
+ std::string const& sep)
{
return cmWrap(std::string(1, prefix), r, std::string(1, suffix), sep);
}