Don't return by const copy

This commit is contained in:
Alexander Karatarakis 2017-09-01 17:13:45 -07:00
parent b76ac1da15
commit e25a125d85
2 changed files with 2 additions and 6 deletions

View File

@ -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
{

View File

@ -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)
{