Parcourir la source

[master] explicitly declare/define virtual destructor for ZoneFinder::Context.

This will fix a build error on some systems, and is a good practice anyway.
Also fix a minor wording error in a comment.
JINMEI Tatuya il y a 13 ans
Parent
commit
14d4b5dd3e
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      src/lib/datasrc/zone.h

+ 4 - 1
src/lib/datasrc/zone.h

@@ -197,6 +197,9 @@ public:
             all_set_(all_set)
             all_set_(all_set)
         {}
         {}
 
 
+        /// \brief The destructor.
+        virtual ~Context() {}
+
         const Result code;
         const Result code;
         const isc::dns::ConstRRsetPtr rrset;
         const isc::dns::ConstRRsetPtr rrset;
 
 
@@ -257,7 +260,7 @@ public:
             const std::vector<isc::dns::RRType>& requested_types,
             const std::vector<isc::dns::RRType>& requested_types,
             std::vector<isc::dns::ConstRRsetPtr>& result)
             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.
             // or specialized implementation.
             if (code != SUCCESS && code != DELEGATION) {
             if (code != SUCCESS && code != DELEGATION) {
                 return;
                 return;