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:
@@ -39,7 +39,7 @@ bool cmOptionCommand
|
||||
m += args[i];
|
||||
m += " ";
|
||||
}
|
||||
this->SetError(m.c_str());
|
||||
this->SetError(m);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ bool cmOptionCommand
|
||||
initialValue = args[2];
|
||||
}
|
||||
bool init = cmSystemTools::IsOn(initialValue.c_str());
|
||||
this->Makefile->AddCacheDefinition(args[0].c_str(), init? "ON":"OFF",
|
||||
this->Makefile->AddCacheDefinition(args[0], init? "ON":"OFF",
|
||||
args[1].c_str(), cmCacheManager::BOOL);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user