1
0

Fixed more virtual destructors for interfaces.

This commit is contained in:
madmaxoft 2014-04-02 16:39:42 +02:00
parent b449ad8613
commit 26c3bc4076
4 changed files with 12 additions and 0 deletions

View File

@ -28,6 +28,9 @@ public:
class cCallbacks abstract class cCallbacks abstract
{ {
public: public:
// Force a virtual destructor in descendants:
virtual ~cCallbacks() {}
/** Called on each block encountered along the path, including the first block (path start) /** Called on each block encountered along the path, including the first block (path start)
When this callback returns true, the tracing is aborted. When this callback returns true, the tracing is aborted.
*/ */

View File

@ -19,6 +19,9 @@ public:
class cCallbacks class cCallbacks
{ {
public: public:
// Force a virtual destructor in descendants:
virtual ~cCallbacks() {}
/// Called when a full header line is parsed /// Called when a full header line is parsed
virtual void OnHeaderLine(const AString & a_Key, const AString & a_Value) = 0; virtual void OnHeaderLine(const AString & a_Key, const AString & a_Value) = 0;
} ; } ;

View File

@ -36,6 +36,9 @@ public:
class cCallbacks class cCallbacks
{ {
public: public:
// Force a virtual destructor in descendants:
virtual ~cCallbacks() {}
/// Called when a new file part is encountered in the form data /// Called when a new file part is encountered in the form data
virtual void OnFileStart(cHTTPFormParser & a_Parser, const AString & a_FileName) = 0; virtual void OnFileStart(cHTTPFormParser & a_Parser, const AString & a_FileName) = 0;

View File

@ -22,6 +22,9 @@ public:
class cCallbacks class cCallbacks
{ {
public: public:
// Force a virtual destructor in descendants:
virtual ~cCallbacks() {}
/// Called when a new part starts /// Called when a new part starts
virtual void OnPartStart(void) = 0; virtual void OnPartStart(void) = 0;