From fd169e971645414b7db91435ae3181bccda4c4b4 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Thu, 8 Jul 2010 21:15:09 +0000 Subject: [PATCH] fix warnings about missing destructors in FeatureDetector and DescriptorExtractor classes and their derivatives --- .../features2d/include/opencv2/features2d/features2d.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/features2d/include/opencv2/features2d/features2d.hpp b/modules/features2d/include/opencv2/features2d/features2d.hpp index c5cd4c91c6..9e66bd7c8d 100644 --- a/modules/features2d/include/opencv2/features2d/features2d.hpp +++ b/modules/features2d/include/opencv2/features2d/features2d.hpp @@ -1268,6 +1268,8 @@ protected: class CV_EXPORTS FeatureDetector { public: + virtual ~FeatureDetector() {} + /* * Detect keypoints in an image. * @@ -1279,9 +1281,9 @@ public: { detectImpl( image, mask, keypoints ); } - - virtual void read(const FileNode&) {}; - virtual void write(FileStorage&) const {}; + + virtual void read(const FileNode&) {} + virtual void write(FileStorage&) const {} protected: /* @@ -1416,6 +1418,7 @@ CV_EXPORTS FeatureDetector* createDetector( const string& detectorType ); class CV_EXPORTS DescriptorExtractor { public: + virtual ~DescriptorExtractor() {} /* * Compute the descriptors for a set of keypoints in an image. *