CVS: [VZ] wxWindows/include/wx filefn.h,1.134,1.135

ABX abx at abx.art.pl
Mon Jul 24 23:38:47 PDT 2006


Hi (Francesco, Vadim)!

After this change:

> -class WXDLLIMPEXP_BASE wxPathList : public wxStringList
> +class WXDLLIMPEXP_BASE wxPathList : public wxArrayString
>  {
>  public:
> +    wxPathList() {}
> +    wxPathList(const wxArrayString &arr)
> +        { Add(arr); }
> +
>      // avoid GCC warning about virtual functions w/o virtual dtor
>      virtual ~wxPathList() {}

I'm getting warning:

..\..\include\wx\filefn.h(606): Warning! W004: col(27) base class
'wxArrayString' does not have a virtual destructor

Just in case the meaning would not be clear here is this warning explanation
from manual:

"A virtual destructor has been declared in a class with base classes.
However, one of those base classes does not have a virtual destructor.  A
delete of a pointer cast to such a base class will not function properly in
all circumstances."

I'm unsure whether you prefer to fix wxArrayString or just ~wxPathList().

HTH,

ABX




More information about the wx-dev mailing list