summaryrefslogtreecommitdiff
path: root/svx/source/unodraw
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-03-06 20:40:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-03-07 13:22:28 +0100
commite4e80ed313882f9ea1b309054e5aa3e839586516 (patch)
tree0d7e44c4456933d7e946a28c8f8d780372a4334f /svx/source/unodraw
parent4c86b07f80740d609f1a1b04b9f53b19782be036 (diff)
loplugin:staticdynamic now with extra salt
because it wasn't quite there yet - now checks for casts with and without const, because const doesn't really matter here. Change-Id: I319025b2095a803fcaad2a7a696d2730b7fd2f81 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112098 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/unodraw')
-rw-r--r--svx/source/unodraw/UnoGraphicExporter.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/unodraw/UnoGraphicExporter.cxx b/svx/source/unodraw/UnoGraphicExporter.cxx
index fcf9a39e4ca3..a177b84e214c 100644
--- a/svx/source/unodraw/UnoGraphicExporter.cxx
+++ b/svx/source/unodraw/UnoGraphicExporter.cxx
@@ -844,14 +844,14 @@ bool GraphicExporter::GetGraphic( ExportSettings const & rSettings, Graphic& aGr
else if( rSettings.mbScrollText )
{
SdrObject* pObj = aShapes.front();
- if( dynamic_cast<const SdrTextObj*>( pObj)
- && static_cast<SdrTextObj*>(pObj)->HasText() )
+ auto pTextObj = dynamic_cast<SdrTextObj*>( pObj);
+ if( pTextObj && pTextObj->HasText() )
{
tools::Rectangle aScrollRectangle;
tools::Rectangle aPaintRectangle;
const std::unique_ptr< GDIMetaFile > pMtf(
- static_cast<SdrTextObj*>(pObj)->GetTextScrollMetaFileAndRectangle(
+ pTextObj->GetTextScrollMetaFileAndRectangle(
aScrollRectangle, aPaintRectangle ) );
// take the larger one of the two rectangles (that