mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 04:40:18 -05: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:
@@ -38,7 +38,7 @@ bool cmAddDependenciesCommand
|
||||
cmOStringStream e;
|
||||
e << "Cannot add target-level dependencies to INTERFACE library "
|
||||
"target \"" << target_name << "\".\n";
|
||||
this->SetError(e.str().c_str());
|
||||
this->SetError(e.str());
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ bool cmAddDependenciesCommand
|
||||
++s; // skip over target_name
|
||||
for (; s != args.end(); ++s)
|
||||
{
|
||||
target->AddUtility(s->c_str(), this->Makefile);
|
||||
target->AddUtility(*s, this->Makefile);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user