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:
Jonathan Schleifer 2013-12-17 18:23:26 +01:00 committed by Adrien Destugues
parent 6a2d12cbee
commit 77ac2d8d8d

View File

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