[Libreoffice-commits] core.git: filter/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sat Jan 9 11:58:17 UTC 2021
filter/source/msfilter/msdffimp.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit ee8e4083460dbb043149df1f44bff003dc3a5f80
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Jan 8 19:12:25 2021 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sat Jan 9 12:57:31 2021 +0100
dynamic_cast followed by static_cast
Change-Id: I12e8e438e0a3b556e29b191374341ddd2e76a24b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109013
Tested-by: Caolán McNamara <caolanm at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index 8129998aac6a..a69b7a31b615 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -4000,18 +4000,18 @@ SdrObject* SvxMSDffManager::ImportGraphic( SvStream& rSt, SfxItemSet& rSet, cons
}
pRet->SetLogicRect( rObjData.aBoundRect );
- if ( dynamic_cast<const SdrGrafObj* >(pRet) != nullptr )
+ if (SdrGrafObj* pGrafObj = dynamic_cast<SdrGrafObj*>(pRet))
{
if( aLinkFileName.getLength() )
{
- static_cast<SdrGrafObj*>(pRet)->SetGraphicLink( aLinkFileName );
- Graphic aGraphic(static_cast<SdrGrafObj*>(pRet)->GetGraphic());
+ pGrafObj->SetGraphicLink( aLinkFileName );
+ Graphic aGraphic(pGrafObj->GetGraphic());
aGraphic.setOriginURL(aLinkFileName);
}
if ( bLinkGrf && !bGrfRead )
{
- Graphic aGraf(static_cast<SdrGrafObj*>(pRet)->GetGraphic());
+ Graphic aGraf(pGrafObj->GetGraphic());
lcl_ApplyCropping( *this, &rSet, aGraf );
}
}
More information about the Libreoffice-commits
mailing list