summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/docxexport.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-03-09 09:55:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-03-09 10:48:55 +0100
commit3ae0aa5e200a57cb30b6ca0131e7b6b7acb49791 (patch)
tree6610facc9165dbf2f15cfd696cf5d03ccc5fb9f4 /sw/source/filter/ww8/docxexport.cxx
parentbc9eaec36f2fcc9f9263da84480856cfbdca0c99 (diff)
use SfxItemSet::GetItemIfSet in sw/.../ww8
Change-Id: I5dc3ac6fba9cbd7902151506e6b696ac5c247af2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130948 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/ww8/docxexport.cxx')
-rw-r--r--sw/source/filter/ww8/docxexport.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/docxexport.cxx b/sw/source/filter/ww8/docxexport.cxx
index c5518afa822f..51534eda5e7c 100644
--- a/sw/source/filter/ww8/docxexport.cxx
+++ b/sw/source/filter/ww8/docxexport.cxx
@@ -1168,10 +1168,10 @@ void DocxExport::WriteSettings()
// Hyphenation details set depending on default style
SwTextFormatColl* pColl = m_rDoc.getIDocumentStylePoolAccess().GetTextCollFromPool(RES_POOLCOLL_STANDARD, /*bRegardLanguage=*/false);
- const SfxPoolItem* pItem;
- if (pColl && SfxItemState::SET == pColl->GetItemState(RES_PARATR_HYPHENZONE, false, &pItem))
+ const SvxHyphenZoneItem* pZoneItem;
+ if (pColl && (pZoneItem = pColl->GetItemIfSet(RES_PARATR_HYPHENZONE, false)))
{
- if (static_cast<const SvxHyphenZoneItem*>(pItem)->IsNoCapsHyphenation())
+ if (pZoneItem->IsNoCapsHyphenation())
pFS->singleElementNS(XML_w, XML_doNotHyphenateCaps);
}