summaryrefslogtreecommitdiff
path: root/canvas/source/cairo/cairo_canvas.hxx
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@novell.com>2011-04-08 16:44:28 +0200
committerThorsten Behrens <tbehrens@novell.com>2011-04-08 16:47:25 +0200
commit09b546cf9c1d0d9f78066e70a0348c7678cdcb14 (patch)
treeea9fb80453a70202a8f8d4bff4710d92259ac5b1 /canvas/source/cairo/cairo_canvas.hxx
parent55961e2dfdac4491aa8a56d86930e5999b7d523b (diff)
Fix overloaded-virtual warning in canvas
With enabled -Woverloaded-virtual gcc warning (see http://lists.freedesktop.org/archives/libreoffice/2011-March/009567.html), canvas exposed a nasty clash between WeakComponentImplHelper::disposing and XEventListener::disposing. Fixed by overriding *once* in baseclass, and then calling disambiguated, renamed methods.
Diffstat (limited to 'canvas/source/cairo/cairo_canvas.hxx')
-rw-r--r--canvas/source/cairo/cairo_canvas.hxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/canvas/source/cairo/cairo_canvas.hxx b/canvas/source/cairo/cairo_canvas.hxx
index 02837d03f6b6..aec8713f8fe9 100644
--- a/canvas/source/cairo/cairo_canvas.hxx
+++ b/canvas/source/cairo/cairo_canvas.hxx
@@ -47,7 +47,7 @@
#include <comphelper/uno3.hxx>
#include <canvas/base/spritecanvasbase.hxx>
-#include <canvas/base/basemutexhelper.hxx>
+#include <canvas/base/disambiguationhelper.hxx>
#include <canvas/base/bufferedgraphicdevicebase.hxx>
#include <basegfx/vector/b2isize.hxx>
@@ -69,7 +69,7 @@ namespace cairocanvas
::com::sun::star::util::XUpdatable,
::com::sun::star::beans::XPropertySet,
::com::sun::star::lang::XServiceName > GraphicDeviceBase_Base;
- typedef ::canvas::GraphicDeviceBase< ::canvas::BaseMutexHelper< GraphicDeviceBase_Base >,
+ typedef ::canvas::GraphicDeviceBase< ::canvas::DisambiguationHelper< GraphicDeviceBase_Base >,
DeviceHelper,
::osl::MutexGuard,
::cppu::OWeakObject > CanvasBase_Base;
@@ -122,12 +122,8 @@ namespace cairocanvas
/// For resource tracking
~Canvas();
-#if defined __SUNPRO_CC
- using CanvasBaseT::disposing;
-#endif
-
/// Dispose all internal references
- virtual void SAL_CALL disposing();
+ virtual void disposeThis();
// Forwarding the XComponent implementation to the
// cppu::ImplHelper templated base