From: JINMEI Tatuya Date: Thu, 27 Sep 2012 19:00:31 +0000 (-0700) Subject: [master] cleanup: removed a redundant copy construction of LabelSequence. X-Git-Tag: trac2351_base~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ac07f31fa2182962f4e958330fc460abeac350d5;p=thirdparty%2Fkea.git [master] cleanup: removed a redundant copy construction of LabelSequence. okayed on jabber. --- diff --git a/src/lib/datasrc/memory/zone_finder.cc b/src/lib/datasrc/memory/zone_finder.cc index 4dddc2c399..7e7b74558e 100644 --- a/src/lib/datasrc/memory/zone_finder.cc +++ b/src/lib/datasrc/memory/zone_finder.cc @@ -490,9 +490,8 @@ FindNodeResult findNode(const ZoneData& zone_data, // Clear the node_path so that we don't keep incorrect (NSEC) // context node_path.clear(); - ZoneTree::Result result = tree.find(LabelSequence(wildcard_ls), - &node, node_path, cutCallback, - &state); + ZoneTree::Result result = tree.find(wildcard_ls, &node, node_path, + cutCallback, &state); // Otherwise, why would the domain_flag::WILD be there if // there was no wildcard under it? assert(result == ZoneTree::EXACTMATCH);