Browse Source

cmAlgorithms: pass std::string by const ref

Daniel Pfeifer 8 years ago
parent
commit
b799ca42b8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Source/cmAlgorithms.h

+ 2 - 1
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);
 }