// node must point to a valid node now
assert(node != NULL);
- std::string* tstr = node->setData(new std::string(filename));
+ const std::string* tstr = node->setData(new std::string(filename));
delete tstr;
- result::Result result(zone_table_->addZone(mem_sgmt_, rrclass_,
- zone_name, holder));
+ const result::Result result(zone_table_->addZone(mem_sgmt_, rrclass_,
+ zone_name, holder));
if (result == result::SUCCESS) {
// Only increment the zone count if the zone doesn't already
// exist.
const std::string
InMemoryClient::getFileName(const isc::dns::Name& zone_name) const {
const FileNameNode* node(NULL);
- FileNameTree::Result result = impl_->file_name_tree_->find(zone_name,
- &node);
+ const FileNameTree::Result result = impl_->file_name_tree_->find(zone_name,
+ &node);
if (result == FileNameTree::EXACTMATCH) {
return (*node->getData());
} else {
// "cdtnode" may be invalid due to the insertion, so we need to re-find
// it.
EXPECT_EQ(TestDomainTree::EXACTMATCH, dtree.find(Name("callback.example"),
- &cdtnode));
+ &cdtnode));
EXPECT_TRUE(cdtnode->getFlag(TestDomainTreeNode::FLAG_CALLBACK));
EXPECT_FALSE(subdtnode->getFlag(TestDomainTreeNode::FLAG_CALLBACK));
EXPECT_FALSE(parentdtnode->getFlag(TestDomainTreeNode::FLAG_CALLBACK));