From: JINMEI Tatuya Date: Mon, 17 Oct 2011 22:52:30 +0000 (-0700) Subject: [1305] pass parameter by reference, not by object (intended to be the former, X-Git-Tag: perftcpdns_before_epoll~79^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=acab4a018b927cf5887b6de8135dbae0d2dcdbff;p=thirdparty%2Fkea.git [1305] pass parameter by reference, not by object (intended to be the former, but apparently forgot to type in '&') --- diff --git a/src/lib/datasrc/tests/database_unittest.cc b/src/lib/datasrc/tests/database_unittest.cc index 0c0207138d..d6a9689b72 100644 --- a/src/lib/datasrc/tests/database_unittest.cc +++ b/src/lib/datasrc/tests/database_unittest.cc @@ -264,7 +264,7 @@ class MockAccessor : public NopAccessor { // Type of mock database "row"s. This is a map whose keys are the // own names. We internally sort them by the name comparison order. struct NameCompare : public binary_function { - bool operator()(const string& n1, const string n2) const { + bool operator()(const string& n1, const string& n2) const { return (Name(n1).compare(Name(n2)).getOrder() < 0); } };