mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -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:
@@ -33,7 +33,7 @@ bool cmLinkLibrariesCommand
|
||||
"a library");
|
||||
return false;
|
||||
}
|
||||
this->Makefile->AddLinkLibrary(i->c_str(),
|
||||
this->Makefile->AddLinkLibrary(*i,
|
||||
cmTarget::DEBUG);
|
||||
}
|
||||
else if (*i == "optimized")
|
||||
@@ -45,12 +45,12 @@ bool cmLinkLibrariesCommand
|
||||
"a library");
|
||||
return false;
|
||||
}
|
||||
this->Makefile->AddLinkLibrary(i->c_str(),
|
||||
this->Makefile->AddLinkLibrary(*i,
|
||||
cmTarget::OPTIMIZED);
|
||||
}
|
||||
else
|
||||
{
|
||||
this->Makefile->AddLinkLibrary(i->c_str());
|
||||
this->Makefile->AddLinkLibrary(*i);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user