summaryrefslogtreecommitdiff
path: root/canvas/source/vcl/canvashelper.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'canvas/source/vcl/canvashelper.hxx')
-rw-r--r--canvas/source/vcl/canvashelper.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/canvas/source/vcl/canvashelper.hxx b/canvas/source/vcl/canvashelper.hxx
index 536b5de4d52c..6920c88f9b05 100644
--- a/canvas/source/vcl/canvashelper.hxx
+++ b/canvas/source/vcl/canvashelper.hxx
@@ -222,8 +222,11 @@ namespace vclcanvas
::com::sun::star::rendering::XBitmap >& xBitmap,
const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState );
+ // cast away const, need to change refcount (as this is
+ // ~invisible to client code, still logically const)
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >
- getDevice();
+ getDevice() { return css::uno::Reference< css::rendering::XGraphicDevice >(mpDevice); }
+
// BitmapCanvasHelper functionality
// ================================