Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
acab4a01
Commit
acab4a01
authored
Oct 17, 2011
by
JINMEI Tatuya
Browse files
[1305] pass parameter by reference, not by object (intended to be the former,
but apparently forgot to type in '&')
parent
ce532896
Changes
1
Show whitespace changes
Inline
Side-by-side
src/lib/datasrc/tests/database_unittest.cc
View file @
acab4a01
...
...
@@ -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
);
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment