mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
strings: Remove redundant calls to std::string::c_str()
Replacements were detected and performed by the clang tool remove-cstr-calls on a linux build.
This commit is contained in:
@@ -276,7 +276,7 @@ void cmExtraCodeBlocksGenerator
|
||||
it->second[0]->GetMakefile()->GetHomeDirectory(),
|
||||
jt->c_str());
|
||||
std::vector<std::string> splitted;
|
||||
cmSystemTools::SplitPath(relative.c_str(), splitted, false);
|
||||
cmSystemTools::SplitPath(relative, splitted, false);
|
||||
// Split filename from path
|
||||
std::string fileName = *(splitted.end()-1);
|
||||
splitted.erase(splitted.end() - 1, splitted.end());
|
||||
|
||||
Reference in New Issue
Block a user