diff options
Diffstat (limited to 'unoidl/source')
-rw-r--r-- | unoidl/source/unoidl-check.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/unoidl/source/unoidl-check.cxx b/unoidl/source/unoidl-check.cxx index e5f8bb0f68c6..ff01d24d493a 100644 --- a/unoidl/source/unoidl-check.cxx +++ b/unoidl/source/unoidl-check.cxx @@ -1105,11 +1105,13 @@ void checkIds( ->getDirectProperties().size()) : 0); assert(n <= ent2B->getDirectProperties().size()); - for (auto & i: ent2B->getDirectProperties()) { - if (!valid(i.name)) { + for (auto i(ent2B->getDirectProperties().begin() +n); + i != ent2B->getDirectProperties().end(); ++i) + { + if (!valid(i->name)) { std::cerr << "accumulation-based service " << name - << " direct property " << i.name + << " direct property " << i->name << " uses an invalid identifier" << std::endl; std::exit(EXIT_FAILURE); } |