Source: Reduce c_str() usage

This commit is contained in:
vvs31415
2021-03-13 07:00:00 -05:00
committed by Vitaly Stakhovsky
parent 982f7bb506
commit 12624ebd7e
11 changed files with 47 additions and 50 deletions

View File

@@ -374,7 +374,7 @@ void cmFindLibraryHelper::AddName(std::string const& name)
regex += "(\\.[0-9]+\\.[0-9]+)?";
}
regex += "$";
entry.Regex.compile(regex.c_str());
entry.Regex.compile(regex);
this->Names.push_back(std::move(entry));
}