diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/txtnode/ndtxt.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx index cbe797f08dcb..c65455722c85 100644 --- a/sw/source/core/txtnode/ndtxt.cxx +++ b/sw/source/core/txtnode/ndtxt.cxx @@ -4006,7 +4006,7 @@ void SwTextNode::UpdateOutlineState() int SwTextNode::GetAttrOutlineLevel() const { - return static_cast<const SfxUInt16Item &>(GetAttr(RES_PARATR_OUTLINELEVEL)).GetValue(); + return GetAttr(RES_PARATR_OUTLINELEVEL).StaticWhichCast(RES_PARATR_OUTLINELEVEL).GetValue(); } void SwTextNode::SetAttrOutlineLevel(int nLevel) @@ -4110,7 +4110,7 @@ void SwTextNode::SetListRestart( bool bRestart ) bool SwTextNode::IsListRestart() const { const SfxBoolItem& aIsRestartItem = - static_cast<const SfxBoolItem&>(GetAttr( RES_PARATR_LIST_ISRESTART )); + GetAttr( RES_PARATR_LIST_ISRESTART ).StaticWhichCast(RES_PARATR_LIST_ISRESTART); return aIsRestartItem.GetValue(); } @@ -4225,7 +4225,7 @@ void SwTextNode::SetCountedInList( bool bCounted ) bool SwTextNode::IsCountedInList() const { const SfxBoolItem& aIsCountedInListItem = - static_cast<const SfxBoolItem&>(GetAttr( RES_PARATR_LIST_ISCOUNTED )); + GetAttr( RES_PARATR_LIST_ISCOUNTED ).StaticWhichCast(RES_PARATR_LIST_ISCOUNTED); return aIsCountedInListItem.GetValue(); } |