cid#1662042 Variable copied when it could be moved

and

cid#1662041 Variable copied when it could be moved
cid#1662040 Variable copied when it could be moved
cid#1662038 Variable copied when it could be moved
cid#1660211 Variable copied when it could be moved
cid#1660147 Variable copied when it could be moved
cid#1660117 Variable copied when it could be moved
cid#1660071 Variable copied when it could be moved
cid#1660046 Variable copied when it could be moved
cid#1660046 Variable copied when it could be moved
cid#1659985 Variable copied when it could be moved

Change-Id: I34627585e593f9de6bfa195ee0617848d9ed6135
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189157
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Caolán McNamara
2025-08-08 12:35:37 +02:00
parent 6af7e6f1e5
commit fc6d103827
10 changed files with 11 additions and 12 deletions
+1 -1
View File
@@ -1112,7 +1112,7 @@ namespace basctl
if ( !aDoc.isValid() )
continue;
aScriptDocs.push_back( aDoc );
aScriptDocs.push_back(std::move(aDoc));
}
}
catch( const Exception& )
+1 -1
View File
@@ -651,7 +651,7 @@ void VCartesianAxis::createAllTickInfosFromComplexCategories( TickInfoArraysType
aTickInfo.fScaledTickValue = m_aScale.Maximum;
aTickInfoVector.push_back(aTickInfo);
}
rAllTickInfos.push_back(aTickInfoVector);
rAllTickInfos.push_back(std::move(aTickInfoVector));
}
}
}
@@ -736,7 +736,7 @@ void DatabaseDataProvider::impl_fillInternalDataProvider_throw(bool _bHasCategor
aRow.push_back( aValue.getDouble() );
}
aDataValues.push_back( aRow );
aDataValues.push_back(std::move(aRow));
}
// insert default data when no rows exist
@@ -1964,7 +1964,7 @@ void ToolbarLayoutManager::implts_getDockingAreaElementInfos( ui::DockingArea eD
SingleRowColumnWindowData aRowColumnWindowData;
aRowColumnWindowData.nRowColumn = nCurrPos;
rRowColumnsWindowData.push_back( aRowColumnWindowData );
rRowColumnsWindowData.push_back(std::move(aRowColumnWindowData));
}
sal_Int32 nSpace( 0 );
+1 -1
View File
@@ -1400,7 +1400,7 @@ void XclImpXF::ApplyPatternToAttrVector(
ScAttrEntry aEntry;
aEntry.nEndRow = nRow1 - 1;
aEntry.setScPatternAttr(&rDoc.getCellAttributeHelper().getDefaultCellAttribute());
rAttrs.push_back(aEntry);
rAttrs.push_back(std::move(aEntry));
}
ScAttrEntry aEntry;
+1 -2
View File
@@ -483,8 +483,7 @@ void SdrTableHTMLParser::ProcToken(HtmlImportInfo* pInfo)
break;
case HtmlTokenId::COL_ON:
{
std::shared_ptr<HTMLCellDefault> pDefault(mpInsDefault.release());
maDefaultList.push_back(pDefault);
maDefaultList.push_back(std::shared_ptr<HTMLCellDefault>(mpInsDefault.release()));
const sal_Int32 nSize = lcl_GetWidth(options) + mnLastEdge;
if (nSize > mnLastEdge)
+1 -1
View File
@@ -10055,7 +10055,7 @@ const BitmapEmit& PDFWriterImpl::createBitmapEmit(const Bitmap& i_rBitmap, const
{
rBitmaps.push_front(BitmapEmit());
rBitmaps.front().m_aID = aID;
rBitmaps.front().m_aBitmap = aBitmap;
rBitmaps.front().m_aBitmap = std::move(aBitmap);
if (!rGraphic.getVectorGraphicData() || rGraphic.getVectorGraphicData()->getType() != VectorGraphicDataType::Pdf || m_aContext.UseReferenceXObject)
rBitmaps.front().m_nObject = createObject();
createEmbeddedFile(rGraphic, rBitmaps.front().m_aReferenceXObject, rBitmaps.front().m_nObject);
+1 -1
View File
@@ -105,7 +105,7 @@ bool ImplImage::loadStockAtScale(SalGraphics* pGraphics, Bitmap &rBitmap)
return false;
}
}
rBitmap = aBitmap;
rBitmap = std::move(aBitmap);
return true;
}
+2 -2
View File
@@ -176,7 +176,7 @@ void loadImageFromStream(std::shared_ptr<SvStream> const & xStream, OUString con
vcl::PngImageReader aPNGReader(*xStream);
Bitmap aTmp;
aPNGReader.read(aTmp);
rParameters.mrBitmap = aTmp;
rParameters.mrBitmap = std::move(aTmp);
}
else if (rPath.endsWith(".svg"))
{
@@ -397,7 +397,7 @@ bool loadDiskCachedVersion(std::u16string_view sVariant, ImageRequestParameters&
vcl::PngImageReader aPNGReader(aFileStream);
Bitmap aTmp;
aPNGReader.read(aTmp);
rParameters.mrBitmap = aTmp;
rParameters.mrBitmap = std::move(aTmp);
return true;
}
+1 -1
View File
@@ -3599,7 +3599,7 @@ void SchXMLExportHelper_Impl::exportDataPoints(
{
SchXMLDataPointStruct aPoint;
aPoint.mnRepeat = nCurrIndex - nLastIndex - 1;
aDataPointVector.push_back( aPoint );
aDataPointVector.push_back(std::move(aPoint));
}
uno::Reference< beans::XPropertySet > xPropSet;