cmAlgorithms: pass std::string by const ref

This commit is contained in:
Daniel Pfeifer 2017-04-21 21:40:54 +02:00
parent 7d6090aec4
commit b799ca42b8

View File

@ -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);
}