mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-02 22:09:35 +00:00
Remove some c_str() calls.
Use the clang RemoveCStrCalls tool to automatically migrate the code. This was only run on linux, so does not have any positive or negative effect on other platforms.
This commit is contained in:
@@ -404,7 +404,7 @@ cmExtraCodeLiteGenerator::GetCodeLiteCompilerName(const cmMakefile* mf) const
|
||||
compilerIdVar = "CMAKE_C_COMPILER_ID";
|
||||
}
|
||||
|
||||
std::string compilerId = mf->GetSafeDefinition(compilerIdVar.c_str());
|
||||
std::string compilerId = mf->GetSafeDefinition(compilerIdVar);
|
||||
std::string compiler = "gnu g++"; // default to g++
|
||||
|
||||
// Since we need the compiler for parsing purposes only
|
||||
|
||||
Reference in New Issue
Block a user