summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-10-24 19:54:05 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-10-25 10:48:12 +0200
commit7cf8cffcb8cfb722ab27a2884c146b464ef89041 (patch)
tree3ff7e82bb17420c2bb1ddaaa7e5c249f69e6769d /svx/source
parentb6177bb610a247e516903c500bf05dd7c11a8ca0 (diff)
cid#1633347 COPY_INSTEAD_OF_MOVE
and cid#1633346 COPY_INSTEAD_OF_MOVE cid#1633344 COPY_INSTEAD_OF_MOVE cid#1633343 COPY_INSTEAD_OF_MOVE cid#1633340 COPY_INSTEAD_OF_MOVE cid#1608137 COPY_INSTEAD_OF_MOVE cid#1608131 COPY_INSTEAD_OF_MOVE cid#1607860 COPY_INSTEAD_OF_MOVE cid#1607432 COPY_INSTEAD_OF_MOVE cid#1607394 COPY_INSTEAD_OF_MOVE cid#1607310 COPY_INSTEAD_OF_MOVE cid#1607156 COPY_INSTEAD_OF_MOVE cid#1607093 COPY_INSTEAD_OF_MOVE cid#1607090 COPY_INSTEAD_OF_MOVE cid#1607039 COPY_INSTEAD_OF_MOVE cid#1606709 COPY_INSTEAD_OF_MOVE cid#1558053 COPY_INSTEAD_OF_MOVE cid#1558052 COPY_INSTEAD_OF_MOVE cid#1558042 COPY_INSTEAD_OF_MOVE cid#1558038 COPY_INSTEAD_OF_MOVE cid#1558037 COPY_INSTEAD_OF_MOVE cid#1558034 COPY_INSTEAD_OF_MOVE cid#1558031 COPY_INSTEAD_OF_MOVE cid#1558027 COPY_INSTEAD_OF_MOVE cid#1557994 COPY_INSTEAD_OF_MOVE cid#1557977 COPY_INSTEAD_OF_MOVE cid#1557970 COPY_INSTEAD_OF_MOVE cid#1557966 COPY_INSTEAD_OF_MOVE cid#1557957 COPY_INSTEAD_OF_MOVE cid#1557954 COPY_INSTEAD_OF_MOVE cid#1557941 COPY_INSTEAD_OF_MOVE cid#1557933 COPY_INSTEAD_OF_MOVE cid#1557918 COPY_INSTEAD_OF_MOVE cid#1557907 COPY_INSTEAD_OF_MOVE cid#1557890 COPY_INSTEAD_OF_MOVE cid#1557883 COPY_INSTEAD_OF_MOVE cid#1557881 COPY_INSTEAD_OF_MOVE cid#1557861 COPY_INSTEAD_OF_MOVE cid#1557842 COPY_INSTEAD_OF_MOVE cid#1557840 COPY_INSTEAD_OF_MOVE cid#1557830 COPY_INSTEAD_OF_MOVE cid#1557830 COPY_INSTEAD_OF_MOVE Change-Id: If5ee3396eafdb8b338d9e6cf0705be6e2b431fd5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175577 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/form/fmshimp.cxx6
-rw-r--r--svx/source/form/formcontroller.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx
index e43c8606c9ad..8fd0b05635d5 100644
--- a/svx/source/form/fmshimp.cxx
+++ b/svx/source/form/fmshimp.cxx
@@ -1971,7 +1971,7 @@ bool FmXFormShell::setCurrentSelection_Lock( InterfaceBag&& _rSelection )
if ( !xNewCurrentForm.is() )
{ // the first form we encountered
- xNewCurrentForm = xThisRoundsForm;
+ xNewCurrentForm = std::move(xThisRoundsForm);
}
else if ( xNewCurrentForm != xThisRoundsForm )
{ // different forms -> no "current form" at all
@@ -2215,7 +2215,7 @@ IMPL_LINK(FmXFormShell, OnFoundData_Lock, FmFoundRecordInformation&, rfriWhere,
DBG_ASSERT(xModelSet.is(), "FmXFormShell::OnFoundData : invalid control model (no property set) !");
xModelSet->setPropertyValue( FM_PROP_ALWAYSSHOWCURSOR, Any( true ) );
xModelSet->setPropertyValue( FM_PROP_CURSORCOLOR, Any( COL_LIGHTRED ) );
- m_xLastGridFound = xControlModel;
+ m_xLastGridFound = std::move(xControlModel);
if ( xGrid.is() )
xGrid->setCurrentColumnPosition(static_cast<sal_Int16>(nGridColumn));
@@ -2441,7 +2441,7 @@ IMPL_LINK(FmXFormShell, OnSearchContextRequest_Lock, FmSearchContext&, rfmscCont
return 0;
}
- rfmscContextInfo.xCursor = xIter;
+ rfmscContextInfo.xCursor = std::move(xIter);
rfmscContextInfo.strUsedFields = strFieldList;
rfmscContextInfo.sFieldDisplayNames = sFieldDisplayNames;
diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx
index fa45f354ed12..16d7d3389048 100644
--- a/svx/source/form/formcontroller.cxx
+++ b/svx/source/form/formcontroller.cxx
@@ -366,7 +366,7 @@ void ColumnInfoCache::initializeControls( const Sequence< Reference< XControl >
if ( gridCol < gridColCount )
{
// found a grid column which is bound to the given
- rCol.xFirstGridWithInputRequiredColumn = xGrid;
+ rCol.xFirstGridWithInputRequiredColumn = std::move(xGrid);
rCol.nRequiredGridColumn = gridCol;
break;
}