summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2019-02-20 18:50:00 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2019-02-20 19:53:39 (GMT)
commit4e315e9449735fc0f246c8cc838613693e849296 (patch)
tree73e74046ff415ed019c23a3433b015f229813c6d /Source/cmSystemTools.h
parentb76b83efd37a439e22d1d92af3b98c30e8f9ba97 (diff)
downloadCMake-4e315e9449735fc0f246c8cc838613693e849296.zip
CMake-4e315e9449735fc0f246c8cc838613693e849296.tar.gz
CMake-4e315e9449735fc0f246c8cc838613693e849296.tar.bz2
cmSystemTools: More functions accept `std::string` params
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index 82e4f01..60e8c18 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -141,7 +141,7 @@ public:
///! Return true if value is NOTFOUND or ends in -NOTFOUND.
static bool IsNOTFOUND(const char* value);
///! Return true if the path is a framework
- static bool IsPathToFramework(const char* value);
+ static bool IsPathToFramework(const std::string& value);
static bool DoesFileExistWithExtensions(
const std::string& name, const std::vector<std::string>& sourceExts);
@@ -242,7 +242,7 @@ public:
/**
* Parse arguments out of a single string command
*/
- static std::vector<std::string> ParseArguments(const char* command);
+ static std::vector<std::string> ParseArguments(const std::string& command);
/** Parse arguments out of a windows command line string. */
static void ParseWindowsCommandLine(const char* command,
@@ -353,7 +353,7 @@ public:
// ConvertToRunCommandPath does not use s_ForceUnixPaths and should
// be used when RunCommand is called from cmake, because the
// running cmake needs paths to be in its format
- static std::string ConvertToRunCommandPath(const char* path);
+ static std::string ConvertToRunCommandPath(const std::string& path);
/** compute the relative path from local to remote. local must
be a directory. remote can be a file or a directory.
@@ -488,7 +488,7 @@ public:
static bool CheckRPath(std::string const& file, std::string const& newRPath);
/** Remove a directory; repeat a few times in case of locked files. */
- static bool RepeatedRemoveDirectory(const char* dir);
+ static bool RepeatedRemoveDirectory(const std::string& dir);
/** Tokenize a string */
static std::vector<std::string> tokenize(const std::string& str,