Browse Source

[2218] Use scoped_ptr instead of auto_ptr

Mukund Sivaraman 12 years ago
parent
commit
e5222941c0
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/lib/datasrc/memory/zone_finder.cc

+ 3 - 1
src/lib/datasrc/memory/zone_finder.cc

@@ -26,6 +26,8 @@
 
 #include <datasrc/logger.h>
 
+#include <boost/scoped_ptr.hpp>
+
 using namespace isc::dns;
 using namespace isc::datasrc::memory;
 using namespace isc::datasrc;
@@ -657,7 +659,7 @@ InMemoryZoneFinder::findNSEC3(const isc::dns::Name& name, bool recursive) {
         const std::vector<uint8_t> salt(nsec3_data->getSaltData(),
                                         (nsec3_data->getSaltData() +
                                          nsec3_data->getSaltLen()));
-        const std::auto_ptr<NSEC3Hash> hash
+        const boost::scoped_ptr<NSEC3Hash> hash
             (NSEC3Hash::create(nsec3_data->hashalg,
                                nsec3_data->iterations,
                                salt));