mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-03 05:08:47 -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:
@@ -499,7 +499,7 @@ void cmExtraCodeBlocksGenerator
|
||||
sit!=otherFiles.end();
|
||||
++sit)
|
||||
{
|
||||
fout<<" <Unit filename=\""<< sit->c_str() <<"\">\n"
|
||||
fout<<" <Unit filename=\""<< *sit <<"\">\n"
|
||||
" </Unit>\n";
|
||||
}
|
||||
|
||||
@@ -653,7 +653,7 @@ void cmExtraCodeBlocksGenerator::AppendTarget(cmGeneratedFileStream& fout,
|
||||
dirIt != uniqIncludeDirs.end();
|
||||
++dirIt)
|
||||
{
|
||||
fout <<" <Add directory=\"" << dirIt->c_str() << "\" />\n";
|
||||
fout <<" <Add directory=\"" << *dirIt << "\" />\n";
|
||||
}
|
||||
|
||||
fout<<" </Compiler>\n";
|
||||
|
||||
Reference in New Issue
Block a user