BIND 10 trac2984, updated. 540dd0449121094a56f294c500c2ed811f6016b6 [2984] Hooks tests use scoped_ptr to Dhcpv6Srv
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Aug 7 14:42:22 UTC 2013
The branch, trac2984 has been updated
via 540dd0449121094a56f294c500c2ed811f6016b6 (commit)
from 1b46569fab6d606359ada85f6736951c969e8eb0 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 540dd0449121094a56f294c500c2ed811f6016b6
Author: Tomek Mrugalski <tomasz at isc.org>
Date: Wed Aug 7 16:42:09 2013 +0200
[2984] Hooks tests use scoped_ptr to Dhcpv6Srv
-----------------------------------------------------------------------
Summary of changes:
src/bin/dhcp6/tests/hooks_unittest.cc | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/dhcp6/tests/hooks_unittest.cc b/src/bin/dhcp6/tests/hooks_unittest.cc
index 4c640e2..717de08 100644
--- a/src/bin/dhcp6/tests/hooks_unittest.cc
+++ b/src/bin/dhcp6/tests/hooks_unittest.cc
@@ -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
More information about the bind10-changes
mailing list