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

[2107] reorder parameters of ZoneData::destroy() for consistency

parent e50a2637
......@@ -41,7 +41,7 @@ protected:
{}
void TearDown() {
if (zone_data_ != NULL) {
ZoneData::destroy(RRClass::IN(), mem_sgmt_, zone_data_);
ZoneData::destroy(mem_sgmt_, RRClass::IN(), zone_data_);
}
// detect any memory leak in the test memory segment
EXPECT_TRUE(mem_sgmt_.allMemoryDeallocated());
......
......@@ -59,7 +59,7 @@ rdataSetDeleter(RRClass rrclass, util::MemorySegment* mem_sgmt,
}
void
ZoneData::destroy(RRClass zone_class, util::MemorySegment& mem_sgmt,
ZoneData::destroy(util::MemorySegment& mem_sgmt, RRClass zone_class,
ZoneData* zone_data)
{
ZoneTree::destroy(mem_sgmt, zone_data->zone_tree_.get(),
......
......@@ -49,7 +49,7 @@ private:
public:
static ZoneData* create(util::MemorySegment& mem_sgmt,
const dns::Name& zone_name);
static void destroy(dns::RRClass zone_class, util::MemorySegment& mem_sgmt,
static void destroy(util::MemorySegment& mem_sgmt, dns::RRClass zone_class,
ZoneData* zone_data);
void insertName(util::MemorySegment& mem_sgmt, const dns::Name& name,
......
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