~yadi/squid/parser-ng-icap-pt2

« back to all changes in this revision

Viewing changes to src/acl/Tree.cc

  • Committer: Amos Jeffries
  • Date: 2015-08-22 14:11:43 UTC
  • mfrom: (13957.1.280 trunk)
  • Revision ID: squid3@treenet.co.nz-20150822141143-r5cvm5u5mx6n8ciu
Merged from trunk rev.14237

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 */
8
8
 
9
9
#include "squid.h"
 
10
#include "acl/Checklist.h"
10
11
#include "acl/Tree.h"
11
12
#include "wordlist.h"
12
13
 
85
86
    return text;
86
87
}
87
88
 
 
89
bool
 
90
Acl::Tree::bannedAction(ACLChecklist *checklist, Nodes::const_iterator node) const
 
91
{
 
92
    if (actions.size()) {
 
93
        assert(actions.size() == nodes.size());
 
94
        const Nodes::size_type pos = node - nodes.begin();
 
95
        return checklist->bannedAction(actions.at(pos));
 
96
    }
 
97
    return false;
 
98
}
 
99