From fc96dc36b0f3df920bab2ef6ced913be0e8fbedd Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 25 Oct 2018 10:27:42 +0200 Subject: sw: remove unnecessary casts Change-Id: I34e823bc9f57924851a70e04c295b1d2c6e11ab4 --- sw/source/uibase/utlui/content.cxx | 7 ++----- 1 file 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((*pOldMember)[nPos].get())->GetOutlineLevel() != nLevel) *pbLevelOrVisibilityChanged = true; @@ -2676,8 +2675,7 @@ TriState SwContentTree::NotifyMoving( SvTreeListEntry* pTarget, nTargetPos = static_cast(pNext->GetUserData())->GetOutlinePos() - 1; } else - nTargetPos = static_cast(GetWrtShell()->getIDocumentOutlineNodesAccess()->getOutlineNodesCount())- 1; - + nTargetPos = GetWrtShell()->getIDocumentOutlineNodesAccess()->getOutlineNodesCount() - 1; } OSL_ENSURE( pEntry && @@ -2721,8 +2719,7 @@ TriState SwContentTree::NotifyCopying( SvTreeListEntry* pTarget, nTargetPos = static_cast(pNext->GetUserData())->GetOutlinePos() - 1; } else - nTargetPos = static_cast(GetWrtShell()->getIDocumentOutlineNodesAccess()->getOutlineNodesCount()) - 1; - + nTargetPos = GetWrtShell()->getIDocumentOutlineNodesAccess()->getOutlineNodesCount() - 1; } OSL_ENSURE( pEntry && -- cgit v1.2.3