Merge topic 'std-string-apis'

653b8946 Reduce raw string pointers usage.

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1729
This commit is contained in:
Brad King
2018-02-01 13:04:29 +00:00
committed by Kitware Robot
120 changed files with 470 additions and 506 deletions
+2 -2
View File
@@ -204,7 +204,7 @@ bool cmAddCustomCommandCommand::InitialPass(
break;
}
if (cmSystemTools::FileIsFullPath(filename.c_str())) {
if (cmSystemTools::FileIsFullPath(filename)) {
filename = cmSystemTools::CollapseFullPath(filename);
}
switch (doing) {
@@ -405,7 +405,7 @@ bool cmAddCustomCommandCommand::CheckOutputs(
for (std::string const& o : outputs) {
// Make sure the file will not be generated into the source
// directory during an out of source build.
if (!this->Makefile->CanIWriteThisFile(o.c_str())) {
if (!this->Makefile->CanIWriteThisFile(o)) {
std::string e = "attempted to have a file \"" + o +
"\" in a source directory as an output of custom command.";
this->SetError(e);