SnifferRules.cpp: Make the arguments for operator< const.
It is used on const versions of sniffer_rule and thus it needs to be declared with const.
This commit is contained in:
parent
6a2d12cbee
commit
77ac2d8d8d
@ -87,7 +87,7 @@ SnifferRules::sniffer_rule::~sniffer_rule()
|
||||
rules for supertypes *after* sniffer rules for subtypes
|
||||
of said supertype when both rules have identical priorities).
|
||||
*/
|
||||
bool operator<(SnifferRules::sniffer_rule &left, SnifferRules::sniffer_rule &right)
|
||||
bool operator<(const SnifferRules::sniffer_rule &left, const SnifferRules::sniffer_rule &right)
|
||||
{
|
||||
if (left.rule && right.rule) {
|
||||
double leftPriority = left.rule->Priority();
|
||||
|
Loading…
Reference in New Issue
Block a user