diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-10-25 10:27:42 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-11-10 19:47:00 +0100 |
commit | fc96dc36b0f3df920bab2ef6ced913be0e8fbedd (patch) | |
tree | 98519967b70376e9eb824f48e733db6213cbce1b | |
parent | e7ca17bb9a7490c3f763e239486a580376533edb (diff) |
sw: remove unnecessary casts
Change-Id: I34e823bc9f57924851a70e04c295b1d2c6e11ab4
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index d09df398c9d0..540910822404 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -553,7 +553,6 @@ void SwContentType::FillMemberList(bool* pbLevelOrVisibilityChanged) pMember->insert(std::move(pCnt)); // with the same number and existing "pOldMember" the // old one is compared with the new OutlinePos. - // cast for Win16 if (nOldMemberCount > nPos && static_cast<SwOutlineContent*>((*pOldMember)[nPos].get())->GetOutlineLevel() != nLevel) *pbLevelOrVisibilityChanged = true; @@ -2676,8 +2675,7 @@ TriState SwContentTree::NotifyMoving( SvTreeListEntry* pTarget, nTargetPos = static_cast<SwOutlineContent*>(pNext->GetUserData())->GetOutlinePos() - 1; } else - nTargetPos = static_cast<sal_uInt16>(GetWrtShell()->getIDocumentOutlineNodesAccess()->getOutlineNodesCount())- 1; - + nTargetPos = GetWrtShell()->getIDocumentOutlineNodesAccess()->getOutlineNodesCount() - 1; } OSL_ENSURE( pEntry && @@ -2721,8 +2719,7 @@ TriState SwContentTree::NotifyCopying( SvTreeListEntry* pTarget, nTargetPos = static_cast<SwOutlineContent*>(pNext->GetUserData())->GetOutlinePos() - 1; } else - nTargetPos = static_cast<sal_uInt16>(GetWrtShell()->getIDocumentOutlineNodesAccess()->getOutlineNodesCount()) - 1; - + nTargetPos = GetWrtShell()->getIDocumentOutlineNodesAccess()->getOutlineNodesCount() - 1; } OSL_ENSURE( pEntry && |