summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-02-16 19:59:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-17 07:45:37 +0100
commitf573d410e8673cd4f3eb772c6f7c2756bdc42e3e (patch)
tree9865f3dceee1381b433e79040b66c383dad98de8 /canvas
parent92387abb28b3cf28159577222f1587df027acf31 (diff)
loplugin:referencecasting in canvas
Change-Id: Ic802d6593db053bb31c3463e67b63399b5f26d67 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111001 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/cairo/cairo_spritehelper.cxx5
-rw-r--r--canvas/source/cairo/cairo_textlayout.cxx2
-rw-r--r--canvas/source/opengl/ogl_textlayout.cxx2
-rw-r--r--canvas/source/vcl/textlayout.cxx2
4 files changed, 5 insertions, 6 deletions
diff --git a/canvas/source/cairo/cairo_spritehelper.cxx b/canvas/source/cairo/cairo_spritehelper.cxx
index 1fe9eb9152e0..929ecdf3b384 100644
--- a/canvas/source/cairo/cairo_spritehelper.cxx
+++ b/canvas/source/cairo/cairo_spritehelper.cxx
@@ -52,8 +52,7 @@ namespace cairocanvas
mbTextureDirty = true;
// also init base class
- CanvasCustomSpriteHelper::init( rSpriteSize,
- rSpriteCanvas.get() );
+ CanvasCustomSpriteHelper::init( rSpriteSize, rSpriteCanvas );
}
void SpriteHelper::setSurface( const SurfaceSharedPtr& pBufferSurface )
@@ -131,7 +130,7 @@ namespace cairocanvas
rClip ));
doPolyPolygonImplementation( aClipPoly, Clip, pCairo.get(),
- nullptr, SurfaceProviderRef(mpSpriteCanvas.get()),
+ nullptr, SurfaceProviderRef(mpSpriteCanvas),
rClip->getFillRule() );
}
diff --git a/canvas/source/cairo/cairo_textlayout.cxx b/canvas/source/cairo/cairo_textlayout.cxx
index 4094bd605e47..2f7abea5352f 100644
--- a/canvas/source/cairo/cairo_textlayout.cxx
+++ b/canvas/source/cairo/cairo_textlayout.cxx
@@ -237,7 +237,7 @@ namespace cairocanvas
{
::osl::MutexGuard aGuard( m_aMutex );
- return mpFont.get();
+ return mpFont;
}
rendering::StringContext SAL_CALL TextLayout::getText( )
diff --git a/canvas/source/opengl/ogl_textlayout.cxx b/canvas/source/opengl/ogl_textlayout.cxx
index 89e7a16a681f..622a78320f08 100644
--- a/canvas/source/opengl/ogl_textlayout.cxx
+++ b/canvas/source/opengl/ogl_textlayout.cxx
@@ -165,7 +165,7 @@ namespace oglcanvas
{
::osl::MutexGuard aGuard( m_aMutex );
- return mpFont.get();
+ return mpFont;
}
rendering::StringContext SAL_CALL TextLayout::getText( )
diff --git a/canvas/source/vcl/textlayout.cxx b/canvas/source/vcl/textlayout.cxx
index 2a0e1fec1a70..4bdda37d9613 100644
--- a/canvas/source/vcl/textlayout.cxx
+++ b/canvas/source/vcl/textlayout.cxx
@@ -313,7 +313,7 @@ namespace vclcanvas
{
SolarMutexGuard aGuard;
- return mpFont.get();
+ return mpFont;
}
rendering::StringContext SAL_CALL TextLayout::getText( )