mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 09:43:02 +08:00
Don't return by const copy
This commit is contained in:
parent
b76ac1da15
commit
e25a125d85
@ -27,7 +27,7 @@ namespace vcpkg
|
||||
// zlib[uwp] becomes Dependency{"zlib", "uwp"}
|
||||
std::vector<Dependency> expand_qualified_dependencies(const std::vector<std::string>& depends);
|
||||
|
||||
const std::string to_string(const Dependency& dep);
|
||||
std::string to_string(const Dependency& dep);
|
||||
|
||||
struct FeatureParagraph
|
||||
{
|
||||
|
@ -220,11 +220,7 @@ namespace vcpkg
|
||||
return FeatureSpec::from_strings_and_triplet(filter_dependencies(deps, t), t);
|
||||
}
|
||||
|
||||
const std::string to_string(const Dependency& dep)
|
||||
{
|
||||
std::string name = dep.name();
|
||||
return name;
|
||||
}
|
||||
std::string to_string(const Dependency& dep) { return dep.name(); }
|
||||
|
||||
ExpectedT<Supports, std::vector<std::string>> Supports::parse(const std::vector<std::string>& strs)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user