Fix prev. commit

Change-Id: I1dd71d6e35ac2dc5f27a11a3dd269247b1b35d39
This commit is contained in:
Stephan Bergmann
2016-02-06 08:51:42 +01:00
parent 189918f5ac
commit 68dbaa9681

View File

@@ -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);
}