diff options
Diffstat (limited to 'linguistic/source')
-rw-r--r-- | linguistic/source/convdiclist.cxx | 2 | ||||
-rw-r--r-- | linguistic/source/gciterator.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/linguistic/source/convdiclist.cxx b/linguistic/source/convdiclist.cxx index 3fa5cdc07081..e032f3cd2480 100644 --- a/linguistic/source/convdiclist.cxx +++ b/linguistic/source/convdiclist.cxx @@ -213,7 +213,7 @@ void SAL_CALL ConvDicNameContainer::replaceByName( rElement >>= xNew; if (!xNew.is() || xNew->getName() != rName) throw IllegalArgumentException(); - aConvDics[ nRplcIdx ] = xNew; + aConvDics[ nRplcIdx ] = std::move(xNew); } void SAL_CALL ConvDicNameContainer::insertByName( 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; |