Commit f57c476f authored by Michal 'vorner' Vaner's avatar 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
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment