Kaydet (Commit) 5365c9de authored tarafından Michael Stahl's avatar Michael Stahl

sw: remove unnecessary casts

Change-Id: I34e823bc9f57924851a70e04c295b1d2c6e11ab4
üst fce1bbdb
...@@ -553,7 +553,6 @@ void SwContentType::FillMemberList(bool* pbLevelOrVisibilityChanged) ...@@ -553,7 +553,6 @@ void SwContentType::FillMemberList(bool* pbLevelOrVisibilityChanged)
pMember->insert(std::move(pCnt)); pMember->insert(std::move(pCnt));
// with the same number and existing "pOldMember" the // with the same number and existing "pOldMember" the
// old one is compared with the new OutlinePos. // old one is compared with the new OutlinePos.
// cast for Win16
if (nOldMemberCount > nPos && static_cast<SwOutlineContent*>((*pOldMember)[nPos].get())->GetOutlineLevel() != nLevel) if (nOldMemberCount > nPos && static_cast<SwOutlineContent*>((*pOldMember)[nPos].get())->GetOutlineLevel() != nLevel)
*pbLevelOrVisibilityChanged = true; *pbLevelOrVisibilityChanged = true;
...@@ -2676,8 +2675,7 @@ TriState SwContentTree::NotifyMoving( SvTreeListEntry* pTarget, ...@@ -2676,8 +2675,7 @@ TriState SwContentTree::NotifyMoving( SvTreeListEntry* pTarget,
nTargetPos = static_cast<SwOutlineContent*>(pNext->GetUserData())->GetOutlinePos() - 1; nTargetPos = static_cast<SwOutlineContent*>(pNext->GetUserData())->GetOutlinePos() - 1;
} }
else else
nTargetPos = static_cast<sal_uInt16>(GetWrtShell()->getIDocumentOutlineNodesAccess()->getOutlineNodesCount())- 1; nTargetPos = GetWrtShell()->getIDocumentOutlineNodesAccess()->getOutlineNodesCount() - 1;
} }
OSL_ENSURE( pEntry && OSL_ENSURE( pEntry &&
...@@ -2721,8 +2719,7 @@ TriState SwContentTree::NotifyCopying( SvTreeListEntry* pTarget, ...@@ -2721,8 +2719,7 @@ TriState SwContentTree::NotifyCopying( SvTreeListEntry* pTarget,
nTargetPos = static_cast<SwOutlineContent*>(pNext->GetUserData())->GetOutlinePos() - 1; nTargetPos = static_cast<SwOutlineContent*>(pNext->GetUserData())->GetOutlinePos() - 1;
} }
else else
nTargetPos = static_cast<sal_uInt16>(GetWrtShell()->getIDocumentOutlineNodesAccess()->getOutlineNodesCount()) - 1; nTargetPos = GetWrtShell()->getIDocumentOutlineNodesAccess()->getOutlineNodesCount() - 1;
} }
OSL_ENSURE( pEntry && OSL_ENSURE( pEntry &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment