add a destructor to silence the compiler warnings

This commit is contained in:
David Rose 2007-06-29 15:11:05 +00:00
parent 14b0579412
commit b625e79758
2 changed files with 12 additions and 0 deletions

View File

@ -140,6 +140,17 @@ MemoryHook(const MemoryHook &copy) :
#endif
}
////////////////////////////////////////////////////////////////////
// Function: MemoryHook::Destructor
// Access: Public, Virtual
// Description:
////////////////////////////////////////////////////////////////////
MemoryHook::
~MemoryHook() {
// Really, we only have this destructor to shut up gcc about the
// virtual functions warning.
}
////////////////////////////////////////////////////////////////////
// Function: MemoryHook::heap_alloc
// Access: Public, Virtual

View File

@ -33,6 +33,7 @@ class EXPCL_DTOOL MemoryHook {
public:
MemoryHook();
MemoryHook(const MemoryHook &copy);
virtual ~MemoryHook();
virtual void *heap_alloc(size_t size);
virtual void heap_free(void *ptr);