Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
f57c476f
Commit
f57c476f
authored
Jun 17, 2013
by
Michal 'vorner' Vaner
Browse files
[2726] Use reference to avoid copy
Not that it would make any difference with such small class, but cppcheck insists.
parent
7abee20a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/resolver/resolver.cc
View file @
f57c476f
...
...
@@ -524,7 +524,8 @@ ResolverImpl::processNormalQuery(const IOMessage& io_message,
{
const
ConstQuestionPtr
question
=
*
query_message
->
beginQuestion
();
const
RRType
qtype
=
question
->
getType
();
const
RRClass
qclass
=
question
->
getClass
();
// Make cppcheck happy with the reference.
const
RRClass
&
qclass
=
question
->
getClass
();
// Apply query ACL
const
Client
client
(
io_message
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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