summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-10-20 20:34:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-10-21 08:59:05 +0100
commit851703f2c525ee4192d9837998ce3e9f66f92012 (patch)
tree8c868ddfaa2fd50d6b3d5cebdc4ad92b9ee7abfe /sw/source
parent0454c5717fe2fd0c96ff5b09b4c3a5b71ef8d862 (diff)
coverity#1371270 Missing move assignment operator
Change-Id: I47438184a9a895b7aa9889ae1308fda29434a774
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/text/frmcrsr.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/text/frmcrsr.cxx b/sw/source/core/text/frmcrsr.cxx
index 130c710b3dec..959dd44cfcd1 100644
--- a/sw/source/core/text/frmcrsr.cxx
+++ b/sw/source/core/text/frmcrsr.cxx
@@ -1198,8 +1198,7 @@ bool SwTextFrame::UnitDown_(SwPaM *pPam, const SwTwips nOffset,
// We make sure that we move down.
if( nTmpOfst <= nStart && ! bFirstOfDouble )
nTmpOfst = nStart + 1;
- pPam->GetPoint()->nContent =
- SwIndex( const_cast<SwTextFrame*>(this)->GetTextNode(), nTmpOfst );
+ pPam->GetPoint()->nContent.Assign(const_cast<SwTextFrame*>(this)->GetTextNode(), nTmpOfst);
if ( IsVertical() )
const_cast<SwTextFrame*>(this)->SwapWidthAndHeight();