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/cmQtAutoGenInitializer.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/cmQtAutoGenInitializer.cxx')
-rw-r--r-- | Source/cmQtAutoGenInitializer.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmQtAutoGenInitializer.cxx b/Source/cmQtAutoGenInitializer.cxx index 41d29e8..1d64247 100644 --- a/Source/cmQtAutoGenInitializer.cxx +++ b/Source/cmQtAutoGenInitializer.cxx @@ -679,7 +679,7 @@ bool cmQtAutoGenInitializer::InitScanFiles() // Register generated files that will be scanned by moc or uic if (this->Moc.Enabled || this->Uic.Enabled) { cmSystemTools::FileFormat const fileType = - cmSystemTools::GetFileFormat(ext.c_str()); + cmSystemTools::GetFileFormat(ext); if ((fileType == cmSystemTools::CXX_FILE_FORMAT) || (fileType == cmSystemTools::HEADER_FILE_FORMAT)) { std::string const absPath = cmSystemTools::GetRealPath(fPath); @@ -745,7 +745,7 @@ bool cmQtAutoGenInitializer::InitScanFiles() continue; } cmSystemTools::FileFormat const fileType = - cmSystemTools::GetFileFormat(sf->GetExtension().c_str()); + cmSystemTools::GetFileFormat(sf->GetExtension()); if (!(fileType == cmSystemTools::CXX_FILE_FORMAT) && !(fileType == cmSystemTools::HEADER_FILE_FORMAT)) { continue; |