diff options
author | Brad King <brad.king@kitware.com> | 2018-06-14 15:26:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-06-14 15:26:37 (GMT) |
commit | 4eae1c081693187925b47df251038e35e43bb014 (patch) | |
tree | 301123b98ad9efdc27ee39c90bad79d5c5c2711e /Source/kwsys/SystemTools.cxx | |
parent | 65ee7d1cc399c5cac25d97827f32e8c5ba60b419 (diff) | |
parent | f3cd44263ed4640b7092e0d280e153894a38fc9e (diff) | |
download | CMake-4eae1c081693187925b47df251038e35e43bb014.zip CMake-4eae1c081693187925b47df251038e35e43bb014.tar.gz CMake-4eae1c081693187925b47df251038e35e43bb014.tar.bz2 |
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys:
KWSys 2018-06-14 (2b0ca1d8)
Diffstat (limited to 'Source/kwsys/SystemTools.cxx')
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 0079da2..b87b6b5 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -686,7 +686,7 @@ public: for (iterator i = this->begin(); i != this->end(); ++i) { # if defined(_WIN32) const std::string s = Encoding::ToNarrow(*i); - kwsysUnPutEnv(s.c_str()); + kwsysUnPutEnv(s); # else kwsysUnPutEnv(*i); # endif @@ -1973,7 +1973,7 @@ std::string SystemTools::ConvertToUnixOutputPath(const std::string& path) } // escape spaces and () in the path if (ret.find_first_of(" ") != std::string::npos) { - std::string result = ""; + std::string result; char lastch = 1; for (const char* ch = ret.c_str(); *ch != '\0'; ++ch) { // if it is already escaped then don't try to escape it again @@ -3140,7 +3140,7 @@ void SystemTools::AddTranslationPath(const std::string& a, void SystemTools::AddKeepPath(const std::string& dir) { std::string cdir; - Realpath(SystemTools::CollapseFullPath(dir).c_str(), cdir); + Realpath(SystemTools::CollapseFullPath(dir), cdir); SystemTools::AddTranslationPath(cdir, dir); } |