Commit 540dd044 authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰

[2984] Hooks tests use scoped_ptr to Dhcpv6Srv

parent 1b46569f
......@@ -128,7 +128,7 @@ public:
HooksDhcpv6SrvTest() {
// Allocate new DHCPv6 Server
srv_ = new NakedDhcpv6Srv(0);
srv_.reset(new NakedDhcpv6Srv(0));
// Clear static buffers
resetCalloutBuffers();
......@@ -136,7 +136,6 @@ public:
/// @brief destructor (deletes Dhcpv6Srv)
~HooksDhcpv6SrvTest() {
delete srv_;
}
/// @brief creates an option with specified option code
......@@ -498,7 +497,7 @@ public:
}
/// Pointer to Dhcpv6Srv that is used in tests
NakedDhcpv6Srv* srv_;
boost::scoped_ptr<NakedDhcpv6Srv> srv_;
// The following fields are used in testing pkt6_receive_callout
......
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