From 5ef98132dd2f85d7f643470ab5fbfa6c1fa8f665 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 17 Jan 2008 10:32:27 -0500 Subject: [PATCH] COMP: Fix warning about missing virtual destructor. --- Source/cmFindPackageCommand.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx index 26b5197c2..24d8c1705 100644 --- a/Source/cmFindPackageCommand.cxx +++ b/Source/cmFindPackageCommand.cxx @@ -965,6 +965,8 @@ bool cmFindPackageCommand::FindConfigFile(std::string const& dir, class cmFileList; class cmFileListGeneratorBase { +public: + virtual ~cmFileListGeneratorBase() {} protected: bool Consider(std::string const& fullPath, cmFileList& listing); private: @@ -980,6 +982,7 @@ class cmFileList { public: cmFileList(): First(), Last(0) {} + virtual ~cmFileList() {} cmFileList& operator/(cmFileListGeneratorBase const& rhs) { if(this->Last)