sw/source/core/doc/docnum.cxx | 7 +++++-- sw/source/core/txtnode/ndtxt.cxx | 8 ++------ sw/source/filter/ww8/ww8par6.cxx | 4 ++-- 3 files changed, 9 insertions(+), 10 deletions(-)
New commits: commit 7841fd1536e018defaf9cbeb283cb82b687f95e1 Author: Maxime de Roucy <mdero...@linagora.com> Date: Fri Feb 8 14:54:36 2013 +0100 use static/reinterpret_cast and minor rewrite Change-Id: I9d2f21394c03e29d573dc197da90a91c96d55409 Reviewed-on: https://gerrit.libreoffice.org/2047 Tested-by: LibreOffice gerrit bot <ger...@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthieb...@gmail.com> diff --git a/sw/source/core/doc/docnum.cxx b/sw/source/core/doc/docnum.cxx index 25d043b..b4078c8 100644 --- a/sw/source/core/doc/docnum.cxx +++ b/sw/source/core/doc/docnum.cxx @@ -1357,11 +1357,14 @@ void SwDoc::DelNumRules( const SwPaM& rPam ) pTNd->ResetAttr( RES_PARATR_LIST_ISCOUNTED ); if( RES_CONDTXTFMTCOLL == pTNd->GetFmtColl()->Which() ) + { pTNd->ChkCondColl(); - + } else if( !pOutlNd && - ((SwTxtFmtColl*)pTNd->GetFmtColl())->IsAssignedToListLevelOfOutlineStyle() )//<-end,zhaojianwei + static_cast<SwTxtFmtColl*>(pTNd->GetFmtColl())->IsAssignedToListLevelOfOutlineStyle() )//<-end,zhaojianwei + { pOutlNd = pTNd; + } } } diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx index 703e632..4881fb5 100644 --- a/sw/source/core/txtnode/ndtxt.cxx +++ b/sw/source/core/txtnode/ndtxt.cxx @@ -2348,9 +2348,7 @@ SwNumRule* SwTxtNode::_GetNumRule(sal_Bool bInParent) const SwNumRule* SwTxtNode::GetNumRule(sal_Bool bInParent) const { - SwNumRule * pRet = _GetNumRule(bInParent); - - return pRet; + return _GetNumRule(bInParent); } void SwTxtNode::NumRuleChgd() @@ -4845,9 +4843,7 @@ sal_uInt32 SwTxtNode::GetRsid( xub_StrLen nStt, xub_StrLen nEnd ) const sal_uInt32 SwTxtNode::GetParRsid() const { - SvxRsidItem &rItem = ( SvxRsidItem& ) GetAttr( RES_PARATR_RSID ); - - return rItem.GetValue(); + return reinterpret_cast<const SvxRsidItem&>(GetAttr( RES_PARATR_RSID )).GetValue(); } bool SwTxtNode::CompareParRsid( const SwTxtNode &rTxtNode ) const diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx index 761a68a..c4f260e 100644 --- a/sw/source/filter/ww8/ww8par6.cxx +++ b/sw/source/filter/ww8/ww8par6.cxx @@ -3827,10 +3827,10 @@ void SwWW8ImplReader::Read_LR( sal_uInt16 nId, const sal_uInt8* pData, short nLe SvxLRSpaceItem aLR( RES_LR_SPACE ); const SfxPoolItem* pLR = GetFmtAttr(RES_LR_SPACE); if( pLR ) - aLR = *(const SvxLRSpaceItem*)pLR; + aLR = *static_cast<const SvxLRSpaceItem*>(pLR); // Fix the regression issue: #i99822#: Discussion? - // Since the list lever formatting doesn't apply into paragraph style + // Since the list level formatting doesn't apply into paragraph style // for list levels of mode LABEL_ALIGNMENT.(see ww8par3.cxx // W8ImplReader::RegisterNumFmtOnTxtNode). // Need to apply the list format to the paragraph here. _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits