Commit 2787dcb0 authored by Alexander Barkov's avatar Alexander Barkov

Fixing a warning:

> deleting object of polymorphic class type ‘CATALOG’ which
> has non-virtual destructor might cause undefined behaviour
> [-Wdelete-non-virtual-dtor]

Classes whose instances are destroyed using "delete"
should have virtual destructors.

modified:
  storage/connect/catalog.h
parent 03259f85
...@@ -59,6 +59,7 @@ class DllExport CATALOG { ...@@ -59,6 +59,7 @@ class DllExport CATALOG {
friend class OEMDEF; friend class OEMDEF;
public: public:
CATALOG(void); // Constructor CATALOG(void); // Constructor
virtual ~CATALOG() { } // Make -Wdelete-non-virtual-dtor happy
// Implementation // Implementation
void *GetDescp(void) {return Descp;} void *GetDescp(void) {return Descp;}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment