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

coverity#1371301 Missing move assignment operator

Change-Id: Ibd6d4b52c24989af6872b4eb3c6c585c1e24a4db
üst e8baf2d2
...@@ -1965,7 +1965,10 @@ bool SwCursor::GoPrevNextCell( bool bNext, sal_uInt16 nCnt ) ...@@ -1965,7 +1965,10 @@ bool SwCursor::GoPrevNextCell( bool bNext, sal_uInt16 nCnt )
(!bNext && !aCellIdx.GetNode().IsEndNode()) ) (!bNext && !aCellIdx.GetNode().IsEndNode()) )
return false; return false;
rPtIdx = bNext ? aCellIdx : SwNodeIndex(*aCellIdx.GetNode().StartOfSectionNode()); if (bNext)
rPtIdx = aCellIdx;
else
rPtIdx.Assign(*aCellIdx.GetNode().StartOfSectionNode());
pTableBoxStartNode = rPtIdx.GetNode().FindTableBoxStartNode(); pTableBoxStartNode = rPtIdx.GetNode().FindTableBoxStartNode();
pTableBox = pTableBoxStartNode->GetTableBox(); pTableBox = pTableBoxStartNode->GetTableBox();
......
...@@ -1420,7 +1420,7 @@ SwTableNode* SwNodes::TextToTable( const SwNodes::TableRanges_t & rTableNodes, ...@@ -1420,7 +1420,7 @@ SwTableNode* SwNodes::TextToTable( const SwNodes::TableRanges_t & rTableNodes,
aCellNodeIdx.GetNode().m_pStartOfSection = pSttNd; aCellNodeIdx.GetNode().m_pStartOfSection = pSttNd;
//skip start/end node pairs //skip start/end node pairs
if( aCellNodeIdx.GetNode().IsStartNode() ) if( aCellNodeIdx.GetNode().IsStartNode() )
aCellNodeIdx = SwNodeIndex( *aCellNodeIdx.GetNode().EndOfSectionNode() ); aCellNodeIdx.Assign(*aCellNodeIdx.GetNode().EndOfSectionNode());
} }
// assign Section to the Box // assign Section to the Box
......
...@@ -833,7 +833,7 @@ sal_uInt8 SwNode::HasPrevNextLayNode() const ...@@ -833,7 +833,7 @@ sal_uInt8 SwNode::HasPrevNextLayNode() const
if( IsValidNextPrevNd( aIdx.GetNode() )) if( IsValidNextPrevNd( aIdx.GetNode() ))
nRet |= ND_HAS_PREV_LAYNODE; nRet |= ND_HAS_PREV_LAYNODE;
// #i77805# - skip section start and end nodes // #i77805# - skip section start and end nodes
aIdx = SwNodeIndex( *this, +1 ); aIdx.Assign(*this, +1);
while ( aIdx.GetNode().IsSectionNode() || while ( aIdx.GetNode().IsSectionNode() ||
( aIdx.GetNode().IsEndNode() && ( aIdx.GetNode().IsEndNode() &&
aIdx.GetNode().StartOfSectionNode()->IsSectionNode() ) ) aIdx.GetNode().StartOfSectionNode()->IsSectionNode() ) )
......
...@@ -4569,7 +4569,7 @@ void wwSectionManager::InsertSegments() ...@@ -4569,7 +4569,7 @@ void wwSectionManager::InsertSegments()
mrReader.m_rDoc.GetNodes().MakeTextNode(aAnchor, mrReader.m_rDoc.GetNodes().MakeTextNode(aAnchor,
mrReader.m_rDoc.getIDocumentStylePoolAccess().GetTextCollFromPool( RES_POOLCOLL_TEXT )); mrReader.m_rDoc.getIDocumentStylePoolAccess().GetTextCollFromPool( RES_POOLCOLL_TEXT ));
aSectPaM.GetPoint()->nNode = SwNodeIndex(*pTextNd); aSectPaM.GetPoint()->nNode.Assign(*pTextNd);
aSectPaM.GetPoint()->nContent.Assign( aSectPaM.GetPoint()->nContent.Assign(
aSectPaM.GetContentNode(), 0); aSectPaM.GetContentNode(), 0);
} }
......
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