Merge "liblp: convert more functions to use string_view (#5)"

This commit is contained in:
Treehugger Robot 2019-09-25 20:49:36 +00:00 committed by Gerrit Code Review
commit 9e8f01101f
2 changed files with 2 additions and 2 deletions

View file

@ -1136,7 +1136,7 @@ bool MetadataBuilder::AddLinearExtent(Partition* partition, const std::string& b
return true;
}
std::vector<Partition*> MetadataBuilder::ListPartitionsInGroup(const std::string& group_name) {
std::vector<Partition*> MetadataBuilder::ListPartitionsInGroup(std::string_view group_name) {
std::vector<Partition*> partitions;
for (const auto& partition : partitions_) {
if (partition->group_name() == group_name) {

View file

@ -289,7 +289,7 @@ class MetadataBuilder {
const std::vector<Interval>& free_region_hint = {});
// Return the list of partitions belonging to a group.
std::vector<Partition*> ListPartitionsInGroup(const std::string& group_name);
std::vector<Partition*> ListPartitionsInGroup(std::string_view group_name);
// Changes a partition's group. Size constraints will not be checked until
// the metadata is exported, to avoid errors during potential group and