summaryrefslogtreecommitdiff
path: root/linguistic/source/gciterator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'linguistic/source/gciterator.cxx')
-rw-r--r--linguistic/source/gciterator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx
index 2077c4dc4328..36bcdcc72119 100644
--- a/linguistic/source/gciterator.cxx
+++ b/linguistic/source/gciterator.cxx
@@ -694,7 +694,7 @@ void GrammarCheckingIterator::DequeueAndCheck()
aRes.nBehindEndOfSentencePosition = nSuggestedEnd;
}
- aRes.xFlatParagraph = xFlatPara;
+ aRes.xFlatParagraph = std::move(xFlatPara);
aRes.nStartOfSentencePosition = nStartPos;
}
else
@@ -702,7 +702,7 @@ void GrammarCheckingIterator::DequeueAndCheck()
// no grammar checker -> no error
// but we need to provide the data below in order to continue with the next sentence
aRes.aDocumentIdentifier = aCurDocId;
- aRes.xFlatParagraph = xFlatPara;
+ aRes.xFlatParagraph = std::move(xFlatPara);
aRes.aText = aCurTxt;
aRes.aLocale = std::move(aCurLocale);
aRes.nStartOfSentencePosition = nStartPos;