Source: use std::string in place of const char*

This commit is contained in:
Vitaly Stakhovsky
2020-01-29 12:40:00 -05:00
committed by Brad King
parent feea34e7eb
commit bbc07e4561
25 changed files with 85 additions and 94 deletions

View File

@@ -139,7 +139,7 @@ const char* cmCustomCommandGenerator::GetArgv0Location(unsigned int c) const
(target->IsImported() ||
target->GetProperty("CROSSCOMPILING_EMULATOR") ||
!this->LG->GetMakefile()->IsOn("CMAKE_CROSSCOMPILING"))) {
return target->GetLocation(this->Config);
return target->GetLocation(this->Config).c_str();
}
return nullptr;
}