Browse Source

[2106] Rewrite code to avoid using a variable

Mukund Sivaraman 12 years ago
parent
commit
72f8c0cf00
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/datasrc/memory_datasrc.cc

+ 2 - 2
src/lib/datasrc/memory_datasrc.cc

@@ -451,9 +451,9 @@ ZoneData::findNode(const Name& name, RBTreeNodeChain<Domain>& node_path,
     DomainNode* node = NULL;
     FindState state((options & ZoneFinder::FIND_GLUE_OK) != 0);
 
-    const LabelSequence ls(name);
     const DomainTree::Result result =
-        domains_.find(ls, &node, node_path, cutCallback, &state);
+        domains_.find(LabelSequence(name), &node, node_path,
+                      cutCallback, &state);
     const unsigned int zonecut_flag =
         (state.zonecut_node_ != NULL) ? FindNodeResult::FIND_ZONECUT : 0;
     if (result == DomainTree::EXACTMATCH) {