]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1305] pass parameter by reference, not by object (intended to be the former,
authorJINMEI Tatuya <jinmei@isc.org>
Mon, 17 Oct 2011 22:52:30 +0000 (15:52 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Mon, 17 Oct 2011 22:52:30 +0000 (15:52 -0700)
but apparently forgot to type in '&')

src/lib/datasrc/tests/database_unittest.cc

index 0c0207138da8b17cc19462d050df9772eb24a90a..d6a9689b7284d4901bd2a059c1088341641fd5e0 100644 (file)
@@ -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<string, string, bool> {
-        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);
         }
     };