summaryrefslogtreecommitdiff
path: root/unoidl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-02-06 08:51:42 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-02-06 08:51:42 +0100
commit68dbaa9681bec5e303aa4675c1dcbbf98991cb7b (patch)
tree96ca835ac85decd7510bdc5c36ca14a8a2b8db1e /unoidl
parent189918f5acd3bc1bee7a8a90f18ba29d0fe2c759 (diff)
Fix prev. commit
Change-Id: I1dd71d6e35ac2dc5f27a11a3dd269247b1b35d39
Diffstat (limited to 'unoidl')
-rw-r--r--unoidl/source/unoidl-check.cxx8
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);
}