mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
cmAlgorithms: pass std::string by const ref
This commit is contained in:
1 parent
7d6090aec4
commit
b799ca42b8
1 file changed
+2
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user