summaryrefslogtreecommitdiff
path: root/sw/source/core/docnode/node.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-08-04 20:26:13 +0200
committerMiklos Vajna <vmiklos@collabora.com>2021-08-05 08:52:52 +0200
commit13377fd2e1d6e00597bb23a480ed9ad0aa9a563c (patch)
tree2a90090132fff23b58be76a1bedef49ceb160bf8 /sw/source/core/docnode/node.cxx
parent41f1d389d4b513a7f616542d00fd58268ab5ea07 (diff)
sw: use more StaticWhichCast() in source/core/docnode/
See commit 0025e80ba6d882f6f885499efaf37ab0e2ed699d (sw: use SfxPoolItem::StaticWhichCast() in SwTextBoxHelper, 2021-07-07) for motivation. Change-Id: Id3ca7f0796a9afdccd7211a2ceec19e476647612 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120010 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/source/core/docnode/node.cxx')
-rw-r--r--sw/source/core/docnode/node.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/docnode/node.cxx b/sw/source/core/docnode/node.cxx
index b5522aad34fc..5cc3a5487004 100644
--- a/sw/source/core/docnode/node.cxx
+++ b/sw/source/core/docnode/node.cxx
@@ -1155,7 +1155,7 @@ void SwContentNode::SwClientNotify( const SwModify&, const SfxHint& rHint)
if (GetNodes().IsDocNodes()
&& IsTextNode()
&& pLegacyHint->m_pOld
- && SfxItemState::SET == static_cast<const SwAttrSetChg*>(pLegacyHint->m_pOld)->GetChgSet()->GetItemState(RES_CHRATR_HIDDEN, false))
+ && SfxItemState::SET == pLegacyHint->m_pOld->StaticWhichCast(RES_ATTRSET_CHG).GetChgSet()->GetItemState(RES_CHRATR_HIDDEN, false))
bCalcHidden = true;
break;