diff options
author | Brad King <brad.king@kitware.com> | 2017-05-31 13:11:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-05-31 13:11:14 (GMT) |
commit | 5e9bd8a2ea759c4f7e412a8591ee55fe057313dc (patch) | |
tree | 3b041d7b7419af79a71471994f3d98cbc62f46cf /Source/kwsys/testSystemTools.cxx | |
parent | de16ff3e58b0518c707ae877e80b6f81e26a4326 (diff) | |
parent | 50988f6d763d99dc7d016000157528fa0ab20086 (diff) | |
download | CMake-5e9bd8a2ea759c4f7e412a8591ee55fe057313dc.zip CMake-5e9bd8a2ea759c4f7e412a8591ee55fe057313dc.tar.gz CMake-5e9bd8a2ea759c4f7e412a8591ee55fe057313dc.tar.bz2 |
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys:
KWSys 2017-05-31 (bd0bbad7)
Diffstat (limited to 'Source/kwsys/testSystemTools.cxx')
-rw-r--r-- | Source/kwsys/testSystemTools.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/kwsys/testSystemTools.cxx b/Source/kwsys/testSystemTools.cxx index 900894c..e6fbf6c 100644 --- a/Source/kwsys/testSystemTools.cxx +++ b/Source/kwsys/testSystemTools.cxx @@ -54,7 +54,8 @@ static const char* toUnixPaths[][2] = { { 0, 0 } }; -static bool CheckConvertToUnixSlashes(std::string input, std::string output) +static bool CheckConvertToUnixSlashes(std::string const& input, + std::string const& output) { std::string result = input; kwsys::SystemTools::ConvertToUnixSlashes(result); @@ -71,8 +72,9 @@ static const char* checkEscapeChars[][4] = { { "1 foo 2 bar 2", "12", "\\", { " {} ", "{}", "#", " #{#} " }, { 0, 0, 0, 0 } }; -static bool CheckEscapeChars(std::string input, const char* chars_to_escape, - char escape_char, std::string output) +static bool CheckEscapeChars(std::string const& input, + const char* chars_to_escape, char escape_char, + std::string const& output) { std::string result = kwsys::SystemTools::EscapeChars( input.c_str(), chars_to_escape, escape_char); |