diff options
-rw-r--r-- | sc/source/core/data/segmenttree.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/Outliner.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/bastyp/calc.cxx | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/core/data/segmenttree.cxx b/sc/source/core/data/segmenttree.cxx index aa10d32544cb..7ae8eba29e16 100644 --- a/sc/source/core/data/segmenttree.cxx +++ b/sc/source/core/data/segmenttree.cxx @@ -250,7 +250,7 @@ bool ScFlatSegmentsImpl<ValueType_, ExtValueType_>::getRangeData(SCCOLROW nPos, auto [it,found] = maSegments.search_tree(nPos, rData.mnValue, &rData.mnPos1, &rData.mnPos2); if (!found) return false; - maItr = it; // cache the iterator to speed up ForwardIterator. + maItr = std::move(it); // cache the iterator to speed up ForwardIterator. rData.mnPos2 = rData.mnPos2-1; // end point is not inclusive. return true; } diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx index aaf4cc6a8160..cd499d787149 100644 --- a/sd/source/ui/view/Outliner.cxx +++ b/sd/source/ui/view/Outliner.cxx @@ -1596,7 +1596,7 @@ void SdOutliner::SetViewMode (PageKind ePageKind) // to. mnPageCount = mpDrawDocument->GetSdPageCount(ePageKind); - maObjectIterator = aIterator; + maObjectIterator = std::move(aIterator); mbMatchMayExist = bMatchMayExist; // Save edit mode so that it can be restored when switching the view diff --git a/sw/source/core/bastyp/calc.cxx b/sw/source/core/bastyp/calc.cxx index 0c9643317a4e..4b793a6ece99 100644 --- a/sw/source/core/bastyp/calc.cxx +++ b/sw/source/core/bastyp/calc.cxx @@ -448,12 +448,12 @@ SwCalcExp* SwCalc::VarLook( const OUString& rStr, bool bIns ) // ...and write them back. m_nListPor = nListPor; m_bHasNumber = bHasNumber; - m_nLastLeft = nLastLeft; - m_nNumberValue = nNumberValue; + m_nLastLeft = std::move(nLastLeft); + m_nNumberValue = std::move(nNumberValue); m_nCommandPos = nCommandPos; m_eCurrOper = eCurrOper; m_eCurrListOper = eCurrListOper; - m_sCommand = sCurrCommand; + m_sCommand = std::move(sCurrCommand); } else { |