diff options
Diffstat (limited to 'sw/source/core/tox/txmsrt.cxx')
-rw-r--r-- | sw/source/core/tox/txmsrt.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/tox/txmsrt.cxx b/sw/source/core/tox/txmsrt.cxx index e0ffc1922701..a67906d0e4ad 100644 --- a/sw/source/core/tox/txmsrt.cxx +++ b/sw/source/core/tox/txmsrt.cxx @@ -136,7 +136,7 @@ SwTOXSortTabBase::SwTOXSortTabBase( TOXSortType nTyp, const SwContentNode* pNd, const SwTOXInternational* pInter, const lang::Locale* pLocale ) : pTOXNd( nullptr ), pTextMark( pMark ), pTOXIntl( pInter ), - nPos( 0 ), nCntPos( 0 ), nType( static_cast<sal_uInt16>(nTyp) ) + nPos( 0 ), nCntPos( 0 ), nType( o3tl::narrowing<sal_uInt16>(nTyp) ) , m_bValidText( false ) { if ( pLocale ) @@ -668,7 +668,7 @@ sal_uInt16 SwTOXPara::GetLevel() const { const int nTmp = static_cast<const SwTextNode*>(pNd)->GetAttrOutlineLevel(); if(nTmp != 0 ) - nRet = static_cast<sal_uInt16>(nTmp); + nRet = o3tl::narrowing<sal_uInt16>(nTmp); } return nRet; } |