diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-02-02 10:29:22 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-02-02 17:42:08 (GMT) |
commit | ed0fa784ebb2b7e4d6db8b40d16f84f34692890a (patch) | |
tree | 11a18e2e286c31c806e9f44d984e440f940bc8d6 /Source/cmExtraCodeLiteGenerator.cxx | |
parent | 254b7260f49caaca78b16761d70d6239626d2129 (diff) | |
download | CMake-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/cmExtraCodeLiteGenerator.cxx')
-rw-r--r-- | Source/cmExtraCodeLiteGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmExtraCodeLiteGenerator.cxx b/Source/cmExtraCodeLiteGenerator.cxx index 2fa593c..0773edc 100644 --- a/Source/cmExtraCodeLiteGenerator.cxx +++ b/Source/cmExtraCodeLiteGenerator.cxx @@ -223,7 +223,7 @@ std::string cmExtraCodeLiteGenerator::CollectSourceFiles( for (cmSourceFile* s : sources) { // check whether it is a source or a include file // then put it accordingly into one of the two containers - switch (cmSystemTools::GetFileFormat(s->GetExtension().c_str())) { + switch (cmSystemTools::GetFileFormat(s->GetExtension())) { case cmSystemTools::C_FILE_FORMAT: case cmSystemTools::CXX_FILE_FORMAT: case cmSystemTools::CUDA_FILE_FORMAT: |