summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-02-02 10:29:22 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-02-02 17:42:08 (GMT)
commited0fa784ebb2b7e4d6db8b40d16f84f34692890a (patch)
tree11a18e2e286c31c806e9f44d984e440f940bc8d6 /Source/cmSystemTools.h
parent254b7260f49caaca78b16761d70d6239626d2129 (diff)
downloadCMake-ed0fa784ebb2b7e4d6db8b40d16f84f34692890a.zip
CMake-ed0fa784ebb2b7e4d6db8b40d16f84f34692890a.tar.gz
CMake-ed0fa784ebb2b7e4d6db8b40d16f84f34692890a.tar.bz2
cmSystemTools: Let `GetFileFormat` accept a `std::stding const&`
The `const char*` used formerly was converted to a `std::string` internally anyway.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index fcb2cce..0f92fe2 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -334,7 +334,7 @@ public:
/**
* Determine the file type based on the extension
*/
- static FileFormat GetFileFormat(const char* ext);
+ static FileFormat GetFileFormat(std::string const& ext);
/** Windows if this is true, the CreateProcess in RunCommand will
* not show new console windows when running programs.