Index: extensions/common/features/base_feature_provider.cc |
diff --git a/extensions/common/features/base_feature_provider.cc b/extensions/common/features/base_feature_provider.cc |
index 710a82749fa1f46a1abe601bfd150fdf0f1f9f9b..40065ff01fece213028bf1cc832ba13efb9bc8b4 100644 |
--- a/extensions/common/features/base_feature_provider.cc |
+++ b/extensions/common/features/base_feature_provider.cc |
@@ -180,7 +180,7 @@ std::vector<Feature*> BaseFeatureProvider::GetChildren(const Feature& parent) |
const FeatureMap::const_iterator first_child = features_.lower_bound(prefix); |
// All children have names before (parent.name() + ('.'+1)). |
- ++prefix[prefix.size() - 1]; |
+ ++prefix.back(); |
const FeatureMap::const_iterator after_children = |
features_.lower_bound(prefix); |