mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 14:40:26 -06: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:
@@ -100,9 +100,9 @@ void cmInstallFilesCommand::FinalPass()
|
||||
else // reg exp list
|
||||
{
|
||||
std::vector<std::string> files;
|
||||
std::string regex = this->FinalArgs[0].c_str();
|
||||
std::string regex = this->FinalArgs[0];
|
||||
cmSystemTools::Glob(this->Makefile->GetCurrentDirectory(),
|
||||
regex.c_str(), files);
|
||||
regex, files);
|
||||
|
||||
std::vector<std::string>::iterator s = files.begin();
|
||||
// for each argument, get the files
|
||||
|
||||
Reference in New Issue
Block a user