Browse Source

make destructor virtual to eliminate compiler warnings

David Rose 23 years ago
parent
commit
1cb9c2640c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      panda/src/egg/eggTransform3d.cxx
  2. 1 1
      panda/src/egg/eggTransform3d.h

+ 1 - 1
panda/src/egg/eggTransform3d.cxx

@@ -56,7 +56,7 @@ operator = (const EggTransform3d &copy) {
 
 ////////////////////////////////////////////////////////////////////
 //     Function: EggTransform3d::Destructor
-//       Access: Public
+//       Access: Public, Virtual
 //  Description:
 ////////////////////////////////////////////////////////////////////
 EggTransform3d::

+ 1 - 1
panda/src/egg/eggTransform3d.h

@@ -35,7 +35,7 @@ public:
   EggTransform3d();
   EggTransform3d(const EggTransform3d &copy);
   EggTransform3d &operator = (const EggTransform3d &copy);
-  ~EggTransform3d();
+  virtual ~EggTransform3d();
 
   INLINE void clear_transform();