Explorar o código

COMP: Fix non-virtual destructor warning

This gives cmFileCopier a virtual destructor since it has virtual
methods.  While we never actually delete through a base pointer (or
dynamically at all), the compiler doesn't know and warns anyway.
Brad King %!s(int64=16) %!d(string=hai) anos
pai
achega
222abaad5b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Source/cmFileCommand.cxx

+ 1 - 0
Source/cmFileCommand.cxx

@@ -922,6 +922,7 @@ struct cmFileCopier
     Doing(DoingNone)
     {
     }
+  virtual ~cmFileCopier() {}
 
   bool Run(std::vector<std::string> const& args);
 protected: