// reporting the parsing error. The dependency check is performed later
// at the database level.
parser.parse(expression, Element::create(client_class->getTest()), AF_INET,
- [&dependencies, &depend_on_known](const ClientClass& client_class) -> bool {
- if (isClientClassBuiltIn(client_class)) {
- if ((client_class == "KNOWN") || (client_class == "UNKNOWN")) {
+ [&dependencies, &depend_on_known](const ClientClass& cc) -> bool {
+ if (isClientClassBuiltIn(cc)) {
+ if ((cc == "KNOWN") || (cc == "UNKNOWN")) {
depend_on_known = true;
}
} else {
- dependencies.push_back(client_class);
+ dependencies.push_back(cc);
}
return (true);
});
}
}
- // Pool is between 15 and 19 with extra between 79 and 81
+ // Pool is between 15 and 19 with extra between 79 and 81
// If the row contains information about the pool and it
// appears to be new pool entry (checked by comparing pool
// reporting the parsing error. The dependency check is performed later
// at the database level.
parser.parse(expression, Element::create(client_class->getTest()), AF_INET6,
- [&dependencies, &depend_on_known](const ClientClass& client_class) -> bool {
- if (isClientClassBuiltIn(client_class)) {
- if ((client_class == "KNOWN") || (client_class == "UNKNOWN")) {
+ [&dependencies, &depend_on_known](const ClientClass& cc) -> bool {
+ if (isClientClassBuiltIn(cc)) {
+ if ((cc == "KNOWN") || (cc == "UNKNOWN")) {
depend_on_known = true;
}
} else {
- dependencies.push_back(client_class);
+ dependencies.push_back(cc);
}
return (true);
});