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-15 15:10:01 +0100 |
commit | 5365c9de01934570808e9973bada171e5e58221e (patch) | |
tree | 669cb47b89d07f74c222b85716045cd36c774d94 /sw | |
parent | fce1bbdb24f188a66e3fe810dc486fb5bf86c6b6 (diff) |
sw: remove unnecessary casts
Change-Id: I34e823bc9f57924851a70e04c295b1d2c6e11ab4
Diffstat (limited to 'sw')
-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 && |