clang-tidy: Fix readability-redundant-string-cstr warnings
This commit is contained in:
parent
bd4ec7a71e
commit
9ea7b4ac66
@ -25,7 +25,7 @@ bool cmGetTestPropertyCommand(std::vector<std::string> const& args,
|
|||||||
prop = test->GetProperty(args[1]);
|
prop = test->GetProperty(args[1]);
|
||||||
}
|
}
|
||||||
if (prop) {
|
if (prop) {
|
||||||
mf.AddDefinition(var, prop->c_str());
|
mf.AddDefinition(var, prop);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -785,7 +785,7 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules(
|
|||||||
if (this->GeneratorTarget->HasSOName(this->GetConfigName())) {
|
if (this->GeneratorTarget->HasSOName(this->GetConfigName())) {
|
||||||
vars.SONameFlag = this->Makefile->GetSONameFlag(linkLanguage);
|
vars.SONameFlag = this->Makefile->GetSONameFlag(linkLanguage);
|
||||||
targetOutSOName = this->LocalGenerator->ConvertToOutputFormat(
|
targetOutSOName = this->LocalGenerator->ConvertToOutputFormat(
|
||||||
this->TargetNames.SharedObject.c_str(), cmOutputConverter::SHELL);
|
this->TargetNames.SharedObject, cmOutputConverter::SHELL);
|
||||||
vars.TargetSOName = targetOutSOName.c_str();
|
vars.TargetSOName = targetOutSOName.c_str();
|
||||||
}
|
}
|
||||||
vars.LinkFlags = linkFlags.c_str();
|
vars.LinkFlags = linkFlags.c_str();
|
||||||
|
@ -2272,10 +2272,9 @@ cmQtAutoMocUicT::JobDepFilesMergeT::initialDependencies() const
|
|||||||
void cmQtAutoMocUicT::JobDepFilesMergeT::Process()
|
void cmQtAutoMocUicT::JobDepFilesMergeT::Process()
|
||||||
{
|
{
|
||||||
if (this->Log().Verbose()) {
|
if (this->Log().Verbose()) {
|
||||||
this->Log().Info(
|
this->Log().Info(GenT::MOC,
|
||||||
GenT::MOC,
|
|
||||||
cmStrCat("Merging MOC dependencies into ",
|
cmStrCat("Merging MOC dependencies into ",
|
||||||
this->MessagePath(this->BaseConst().DepFile.c_str())));
|
this->MessagePath(this->BaseConst().DepFile)));
|
||||||
}
|
}
|
||||||
auto processDepFile =
|
auto processDepFile =
|
||||||
[this](const std::string& mocOutputFile) -> std::vector<std::string> {
|
[this](const std::string& mocOutputFile) -> std::vector<std::string> {
|
||||||
|
Loading…
Reference in New Issue
Block a user