[Cmake-commits] [cmake-commits] king committed cmFileCommand.cxx 1.130 1.131

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Apr 29 13:33:07 EDT 2009


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv26524/Source

Modified Files:
	cmFileCommand.cxx 
Log Message:
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.


Index: cmFileCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmFileCommand.cxx,v
retrieving revision 1.130
retrieving revision 1.131
diff -C 2 -d -r1.130 -r1.131
*** cmFileCommand.cxx	29 Apr 2009 17:13:23 -0000	1.130
--- cmFileCommand.cxx	29 Apr 2009 17:33:05 -0000	1.131
***************
*** 923,926 ****
--- 923,927 ----
      {
      }
+   virtual ~cmFileCopier() {}
  
    bool Run(std::vector<std::string> const& args);



More information about the Cmake-commits mailing list