mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 13:19:51 -05:00
Reduce raw string pointers usage.
* Change some functions to take `std::string` instead of `const char*` in the following classes: `cmMakeFile`, `cmake`, `cmCoreTryCompile`, `cmSystemTools`, `cmState`, `cmLocalGenerator` and a few others. * Greatly reduce using of `const char*` overloads for `cmSystemTools::MakeDirectory` and `cmSystemTools::RelativePath`. * Remove many redundant `c_str()` conversions throughout the code.
This commit is contained in:
@@ -28,7 +28,7 @@ bool cmTryCompileCommand::InitialPass(std::vector<std::string> const& argv,
|
||||
// if They specified clean then we clean up what we can
|
||||
if (this->SrcFileSignature) {
|
||||
if (!this->Makefile->GetCMakeInstance()->GetDebugTryCompile()) {
|
||||
this->CleanupFiles(this->BinaryDirectory.c_str());
|
||||
this->CleanupFiles(this->BinaryDirectory);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user