You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by am...@apache.org on 2015/07/08 20:10:46 UTC
trafficserver git commit: TS-3725: Fix comparator function operator
to be const.
Repository: trafficserver
Updated Branches:
refs/heads/master f6dfe98f2 -> 7e97ec874
TS-3725: Fix comparator function operator to be const.
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/7e97ec87
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/7e97ec87
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/7e97ec87
Branch: refs/heads/master
Commit: 7e97ec874bf2297782f8f6c6de8bafe470df26e0
Parents: f6dfe98
Author: Alan M. Carroll <so...@yahoo-inc.com>
Authored: Wed Jul 8 13:10:19 2015 -0500
Committer: Alan M. Carroll <so...@yahoo-inc.com>
Committed: Wed Jul 8 13:10:19 2015 -0500
----------------------------------------------------------------------
iocore/hostdb/P_HostDBProcessor.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/7e97ec87/iocore/hostdb/P_HostDBProcessor.h
----------------------------------------------------------------------
diff --git a/iocore/hostdb/P_HostDBProcessor.h b/iocore/hostdb/P_HostDBProcessor.h
index 99f9426..52617e4 100644
--- a/iocore/hostdb/P_HostDBProcessor.h
+++ b/iocore/hostdb/P_HostDBProcessor.h
@@ -191,7 +191,7 @@ extern RecRawStatBlock *hostdb_rsb;
struct CmpConstBuffferCaseInsensitive {
- bool operator()(ts::ConstBuffer a, ts::ConstBuffer b) { return ptr_len_casecmp(a._ptr, a._size, b._ptr, b._size) < 0; }
+ bool operator()(ts::ConstBuffer a, ts::ConstBuffer b) const { return ptr_len_casecmp(a._ptr, a._size, b._ptr, b._size) < 0; }
};
// Our own typedef for the host file mapping