Commit dd50aa40 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

cleanup: skip performing unnecessary copy construction


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@723 e5f2f494-b856-4b98-b285-d166d9295462
parent fd461ee7
......@@ -43,7 +43,7 @@ DataSrc::runQuery(Query q) {
// XXX: what if 'data' contains more than one RRset?
m.addRRset(task->section, data[0]);
if (q.wantDnssec() && sigs.size() == 1) {
m.addRRset(Section(task->section), sigs[0]);
m.addRRset(task->section, sigs[0]);
}
if (q.status() == QUERY_FINISHING) {
......@@ -64,7 +64,7 @@ DataSrc::runQuery(Query q) {
case CNAME:
m.addRRset(task->section, data[0]);
if (q.wantDnssec() && sigs.size() == 1) {
m.addRRset(Section(task->section), sigs[0]);
m.addRRset(task->section, sigs[0]);
}
// if (data[0].getType() == RRType::CNAME()) {
......
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