From 68dbaa9681bec5e303aa4675c1dcbbf98991cb7b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 6 Feb 2016 08:51:42 +0100 Subject: Fix prev. commit Change-Id: I1dd71d6e35ac2dc5f27a11a3dd269247b1b35d39 --- unoidl/source/unoidl-check.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'unoidl') 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); } -- cgit