]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] explicitly declare/define virtual destructor for ZoneFinder::Context.
authorJINMEI Tatuya <jinmei@isc.org>
Thu, 8 Mar 2012 00:16:54 +0000 (16:16 -0800)
committerJINMEI Tatuya <jinmei@isc.org>
Thu, 8 Mar 2012 00:16:54 +0000 (16:16 -0800)
This will fix a build error on some systems, and is a good practice anyway.
Also fix a minor wording error in a comment.

src/lib/datasrc/zone.h

index 0a58312311a97b39e1f85baa89e1dd13e08fee96..361a03a605107e78dcaa7da3228663781e1b92c6 100644 (file)
@@ -197,6 +197,9 @@ public:
             all_set_(all_set)
         {}
 
+        /// \brief The destructor.
+        virtual ~Context() {}
+
         const Result code;
         const isc::dns::ConstRRsetPtr rrset;
 
@@ -257,7 +260,7 @@ public:
             const std::vector<isc::dns::RRType>& requested_types,
             std::vector<isc::dns::ConstRRsetPtr>& result)
         {
-            // Perform common checks, and delegate the process the default
+            // Perform common checks, and delegate the process to the default
             // or specialized implementation.
             if (code != SUCCESS && code != DELEGATION) {
                 return;