You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2013/01/16 13:31:37 UTC

svn commit: r1433913 - in /openoffice/trunk/main/vcl/inc/vcl: alpha.hxx bitmap.hxx

Author: hdu
Date: Wed Jan 16 12:31:37 2013
New Revision: 1433913

URL: http://svn.apache.org/viewvc?rev=1433913&view=rev
Log:
AlphaMask derives from Bitmap so their destructor should be virtual

Modified:
    openoffice/trunk/main/vcl/inc/vcl/alpha.hxx
    openoffice/trunk/main/vcl/inc/vcl/bitmap.hxx

Modified: openoffice/trunk/main/vcl/inc/vcl/alpha.hxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/vcl/inc/vcl/alpha.hxx?rev=1433913&r1=1433912&r2=1433913&view=diff
==============================================================================
--- openoffice/trunk/main/vcl/inc/vcl/alpha.hxx (original)
+++ openoffice/trunk/main/vcl/inc/vcl/alpha.hxx Wed Jan 16 12:31:37 2013
@@ -50,7 +50,7 @@ public:
 							AlphaMask( const Bitmap& rBitmap );
                             AlphaMask( const AlphaMask& rAlphaMask );
                             AlphaMask( const Size& rSizePixel, sal_uInt8* pEraseTransparency = NULL );
-                            ~AlphaMask();
+    virtual                 ~AlphaMask();
 
     AlphaMask&				operator=( const Bitmap& rBitmap );
 	AlphaMask&				operator=( const AlphaMask& rAlphaMask ) { return (AlphaMask&) Bitmap::operator=( rAlphaMask ); }

Modified: openoffice/trunk/main/vcl/inc/vcl/bitmap.hxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/vcl/inc/vcl/bitmap.hxx?rev=1433913&r1=1433912&r2=1433913&view=diff
==============================================================================
--- openoffice/trunk/main/vcl/inc/vcl/bitmap.hxx (original)
+++ openoffice/trunk/main/vcl/inc/vcl/bitmap.hxx Wed Jan 16 12:31:37 2013
@@ -420,7 +420,7 @@ public:
                             Bitmap( const Size& rSizePixel, sal_uInt16 nBitCount, const BitmapPalette* pPal = NULL );
                             Bitmap( const ResId& rResId );
                             Bitmap( SalBitmap* pSalBitmap );
-                            ~Bitmap();
+    virtual                 ~Bitmap();
 
     Bitmap&                 operator=( const Bitmap& rBitmap );
     inline sal_Bool             operator!() const;