summaryrefslogtreecommitdiffstats
path: root/testfiles/src/attributes-test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'testfiles/src/attributes-test.cpp')
-rw-r--r--testfiles/src/attributes-test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/testfiles/src/attributes-test.cpp b/testfiles/src/attributes-test.cpp
index 7b3be37bd..ae933611d 100644
--- a/testfiles/src/attributes-test.cpp
+++ b/testfiles/src/attributes-test.cpp
@@ -548,8 +548,8 @@ std::vector<size_t> getIdIds()
std::vector<size_t> ids;
std::vector<AttributeInfo> all_attrs = getKnownAttrs();
ids.reserve(all_attrs.size()); // minimize memory thrashing
- for (AttrItr it(all_attrs.begin()); it != all_attrs.end(); ++it) {
- auto id = sp_attribute_lookup(it->attr.c_str());
+ for (auto & all_attr : all_attrs) {
+ auto id = sp_attribute_lookup(all_attr.attr.c_str());
if (id >= ids.size()) {
ids.resize(id + 1);
}