summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-07-21 20:18:38 +0200
committerMiklos Vajna <vmiklos@collabora.com>2021-07-22 09:24:53 +0200
commit580194ec22841b915fb90cba63072bc781c3859a (patch)
treebf7e1ff8b8b9cae6b93a1894ded599ff9b4a6da3
parent946f457c885bd10ff1a7281c351f3981f035f5a7 (diff)
sw: use SfxPoolItem::StaticWhichCast() in InitCore()
See commit 0025e80ba6d882f6f885499efaf37ab0e2ed699d (sw: use SfxPoolItem::StaticWhichCast() in SwTextBoxHelper, 2021-07-07) for motivation. Change-Id: I292e1e8ec4f2536b213d76fdc1f45d3298c3fe03 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119340 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
-rw-r--r--sw/source/core/bastyp/init.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/bastyp/init.cxx b/sw/source/core/bastyp/init.cxx
index 90a883229f4b..b3cb99f84675 100644
--- a/sw/source/core/bastyp/init.cxx
+++ b/sw/source/core/bastyp/init.cxx
@@ -635,9 +635,9 @@ void InitCore()
new SvXMLAttrContainerItem( RES_UNKNOWNATR_CONTAINER );
// get the correct fonts:
- ::GetDefaultFonts( *static_cast<SvxFontItem*>(aAttrTab[ RES_CHRATR_FONT- POOLATTR_BEGIN ]),
- *static_cast<SvxFontItem*>(aAttrTab[ RES_CHRATR_CJK_FONT - POOLATTR_BEGIN ]),
- *static_cast<SvxFontItem*>(aAttrTab[ RES_CHRATR_CTL_FONT - POOLATTR_BEGIN ]) );
+ ::GetDefaultFonts( (aAttrTab[ RES_CHRATR_FONT- POOLATTR_BEGIN ])->StaticWhichCast(RES_CHRATR_FONT),
+ (aAttrTab[ RES_CHRATR_CJK_FONT - POOLATTR_BEGIN ])->StaticWhichCast(RES_CHRATR_CJK_FONT),
+ (aAttrTab[ RES_CHRATR_CTL_FONT - POOLATTR_BEGIN ])->StaticWhichCast(RES_CHRATR_CTL_FONT) );
SwBreakIt::Create_( ::comphelper::getProcessComponentContext() );
pCheckIt = nullptr;