mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Remove c_str calls when using stream APIs.
Use an ad-hoc clang tool for matching the calls which should be ported.
This commit is contained in:
@@ -271,7 +271,7 @@ cmExportInstallFileGenerator::GenerateImportFileConfig(
|
||||
{
|
||||
std::string se = cmSystemTools::GetLastSystemError();
|
||||
cmOStringStream e;
|
||||
e << "cannot write to file \"" << fileName.c_str()
|
||||
e << "cannot write to file \"" << fileName
|
||||
<< "\": " << se;
|
||||
cmSystemTools::Error(e.str().c_str());
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user