diff options
author | KWSys Upstream <kwrobot@kitware.com> | 2020-04-06 13:23:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-04-06 13:24:41 (GMT) |
commit | fe6d7d6c4208df4598b725d43860ded4b316640d (patch) | |
tree | b4ea8ff554c22681542737df256ffd1f2401fa53 /SystemTools.hxx.in | |
parent | 976d29b9bd23897f47aa5afd8af621e8970d2b76 (diff) | |
download | CMake-fe6d7d6c4208df4598b725d43860ded4b316640d.zip CMake-fe6d7d6c4208df4598b725d43860ded4b316640d.tar.gz CMake-fe6d7d6c4208df4598b725d43860ded4b316640d.tar.bz2 |
KWSys 2020-04-06 (af1f389c)
Code extracted from:
https://gitlab.kitware.com/utils/kwsys.git
at commit af1f389ca9709a78fdf0103cc20175533054a3e7 (master).
Upstream Shortlog
-----------------
Brad King (4):
313b2f7a SystemTools: Make SystemToolsStatic singleton private to implementation file
019afb6e SystemTools: Drop GetCurrentWorkingDirectory 'collapse' argument
c35a377f SystemTools: Refactor CollapseFullPath to call getcwd only when needed
e3989b18 SystemTools: Restore GetCurrentWorkingDirectory slash conversion on Windows
Diffstat (limited to 'SystemTools.hxx.in')
-rw-r--r-- | SystemTools.hxx.in | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/SystemTools.hxx.in b/SystemTools.hxx.in index d4a93fa..e13d03e 100644 --- a/SystemTools.hxx.in +++ b/SystemTools.hxx.in @@ -411,11 +411,11 @@ public: * (which defaults to the current working directory). The full path * is returned. */ - static std::string CollapseFullPath(const std::string& in_relative); - static std::string CollapseFullPath(const std::string& in_relative, + static std::string CollapseFullPath(std::string const& in_path); + static std::string CollapseFullPath(std::string const& in_path, const char* in_base); - static std::string CollapseFullPath(const std::string& in_relative, - const std::string& in_base); + static std::string CollapseFullPath(std::string const& in_path, + std::string const& in_base); /** * Get the real path for a given path, removing all symlinks. In @@ -869,7 +869,7 @@ public: /** * Get current working directory CWD */ - static std::string GetCurrentWorkingDirectory(bool collapse = true); + static std::string GetCurrentWorkingDirectory(); /** * Change directory to the directory specified @@ -981,7 +981,6 @@ private: return &SystemToolsManagerInstance; } - static SystemToolsStatic* Statics; friend class SystemToolsStatic; friend class SystemToolsManager; }; |