diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-03-11 12:35:32 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-03-11 14:03:50 (GMT) |
commit | af8a1643c1a42aa3b276a50bca10a4faab176764 (patch) | |
tree | e43581126113bdad071f92dbe531b5d7d1009660 /Source/cmExtraCodeLiteGenerator.cxx | |
parent | 21c573f682f9eafbc8d4402f7febbb1bec1cb86a (diff) | |
download | CMake-af8a1643c1a42aa3b276a50bca10a4faab176764.zip CMake-af8a1643c1a42aa3b276a50bca10a4faab176764.tar.gz CMake-af8a1643c1a42aa3b276a50bca10a4faab176764.tar.bz2 |
Remove c_str calls when using stream APIs.
Use an ad-hoc clang tool for matching the calls which should be
ported.
Diffstat (limited to 'Source/cmExtraCodeLiteGenerator.cxx')
-rw-r--r-- | Source/cmExtraCodeLiteGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmExtraCodeLiteGenerator.cxx b/Source/cmExtraCodeLiteGenerator.cxx index da397b1..1cbd057 100644 --- a/Source/cmExtraCodeLiteGenerator.cxx +++ b/Source/cmExtraCodeLiteGenerator.cxx @@ -311,7 +311,7 @@ void cmExtraCodeLiteGenerator { std::string relativePath = cmSystemTools::RelativePath(projectPath.c_str(), sit->first.c_str()); - fout<< " <File Name=\"" << relativePath.c_str() << "\"/>\n"; + fout<< " <File Name=\"" << relativePath << "\"/>\n"; } fout<< " </VirtualDirectory>\n"; fout<< " <VirtualDirectory Name=\"include\">\n"; @@ -322,7 +322,7 @@ void cmExtraCodeLiteGenerator { std::string relativePath = cmSystemTools::RelativePath(projectPath.c_str(), sit->c_str()); - fout << " <File Name=\"" << relativePath.c_str() << "\"/>\n"; + fout << " <File Name=\"" << relativePath << "\"/>\n"; } fout << " </VirtualDirectory>\n"; |