From: JINMEI Tatuya Date: Thu, 8 Mar 2012 00:16:54 +0000 (-0800) Subject: [master] explicitly declare/define virtual destructor for ZoneFinder::Context. X-Git-Tag: trac2351_base~226^2~116^2~41^2~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=14d4b5dd3ef4cb9cee473e70aaeaa5d63dac6113;p=thirdparty%2Fkea.git [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. --- diff --git a/src/lib/datasrc/zone.h b/src/lib/datasrc/zone.h index 0a58312311..361a03a605 100644 --- a/src/lib/datasrc/zone.h +++ b/src/lib/datasrc/zone.h @@ -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& requested_types, std::vector& 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;