Kaydet (Commit) e8baf2d2 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1371270 Missing move assignment operator

Change-Id: I9a5656fa3a4d4283a1daec957da9d909390d9eb2
üst e9834a3e
......@@ -4516,7 +4516,7 @@ bool DocumentContentOperationsManager::CopyImpl( SwPaM& rPam, SwPosition& rPos,
{
assert(*pCopyPam->GetPoint() == rPos);
// the Node rPos points to may be deleted so unregister ...
rPos.nContent = SwIndex(nullptr);
rPos.nContent.Assign(nullptr, 0);
lcl_DeleteRedlines(rPam, *pCopyPam);
rPos = *pCopyPam->GetPoint(); // ... and restore.
}
......
......@@ -689,7 +689,7 @@ bool SwTextFrame::LeftMargin(SwPaM *pPam) const
nIndx = 0;
}
}
pPam->GetPoint()->nContent = SwIndex( pFrame->GetTextNode(), nIndx );
pPam->GetPoint()->nContent.Assign(pFrame->GetTextNode(), nIndx);
SwTextCursor::SetRightMargin( false );
return true;
}
......@@ -730,7 +730,7 @@ bool SwTextFrame::RightMargin(SwPaM *pPam, bool bAPI) const
--nRightMargin;
}
}
pPam->GetPoint()->nContent = SwIndex( pFrame->GetTextNode(), nRightMargin );
pPam->GetPoint()->nContent.Assign(pFrame->GetTextNode(), nRightMargin);
SwTextCursor::SetRightMargin( !bAPI );
return true;
}
......@@ -839,8 +839,7 @@ bool SwTextFrame::UnitUp_( SwPaM *pPam, const SwTwips nOffset,
nTmpOfst = nStart;
aSet.SetRight( true );
}
pPam->GetPoint()->nContent =
SwIndex( const_cast<SwTextFrame*>(this)->GetTextNode(), nTmpOfst );
pPam->GetPoint()->nContent.Assign(const_cast<SwTextFrame*>(this)->GetTextNode(), nTmpOfst);
return true;
}
......
......@@ -2769,7 +2769,7 @@ SwUndo* SwUndoTableCpyTable::PrepareRedline( SwDoc* pDoc, const SwTableBox& rBox
}
}
else
aInsertEnd.nContent = SwIndex( nullptr );
aInsertEnd.nContent.Assign(nullptr, 0);
}
// For joined (merged) contents the start of deletion and end of insertion are identical
// otherwise adjacent nodes.
......
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