mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-19 12:50:48 -05:00
Remove redundant c_str() calls
This commit is contained in:
@@ -69,7 +69,7 @@ bool cmIncludeCommand::InitialPass(std::vector<std::string> const& args,
|
||||
module += ".cmake";
|
||||
std::string mfile = this->Makefile->GetModulesFile(module.c_str());
|
||||
if (!mfile.empty()) {
|
||||
fname = mfile.c_str();
|
||||
fname = mfile;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ bool cmIncludeCommand::InitialPass(std::vector<std::string> const& args,
|
||||
}
|
||||
|
||||
std::string listFile = cmSystemTools::CollapseFullPath(
|
||||
fname.c_str(), this->Makefile->GetCurrentSourceDirectory());
|
||||
fname, this->Makefile->GetCurrentSourceDirectory());
|
||||
if (optional && !cmSystemTools::FileExists(listFile.c_str())) {
|
||||
if (!resultVarName.empty()) {
|
||||
this->Makefile->AddDefinition(resultVarName, "NOTFOUND");
|
||||
|
||||
Reference in New Issue
Block a user