cid#1557618 COPY_INSTEAD_OF_MOVE

and

cid#1557535 COPY_INSTEAD_OF_MOVE
cid#1557520 COPY_INSTEAD_OF_MOVE
cid#1557513 COPY_INSTEAD_OF_MOVE
cid#1557503 COPY_INSTEAD_OF_MOVE
cid#1557487 COPY_INSTEAD_OF_MOVE
cid#1557483 COPY_INSTEAD_OF_MOVE
cid#1557479 COPY_INSTEAD_OF_MOVE
cid#1557474 COPY_INSTEAD_OF_MOVE
cid#1557461 COPY_INSTEAD_OF_MOVE
cid#1557446 COPY_INSTEAD_OF_MOVE
cid#1557445 COPY_INSTEAD_OF_MOVE
cid#1557441 COPY_INSTEAD_OF_MOVE
cid#1557435 COPY_INSTEAD_OF_MOVE
cid#1557433 COPY_INSTEAD_OF_MOVE
cid#1557429 COPY_INSTEAD_OF_MOVE
cid#1557375 COPY_INSTEAD_OF_MOVE
cid#1557372 COPY_INSTEAD_OF_MOVE
cid#1557356 COPY_INSTEAD_OF_MOVE
cid#1557350 COPY_INSTEAD_OF_MOVE
cid#1557344 COPY_INSTEAD_OF_MOVE
cid#1557339 COPY_INSTEAD_OF_MOVE
cid#1557332 COPY_INSTEAD_OF_MOVE
cid#1557330 COPY_INSTEAD_OF_MOVE
cid#1557328 COPY_INSTEAD_OF_MOVE
cid#1557323 COPY_INSTEAD_OF_MOVE
cid#1557315 COPY_INSTEAD_OF_MOVE
cid#1557313 COPY_INSTEAD_OF_MOVE
cid#1557304 COPY_INSTEAD_OF_MOVE
cid#1557297 COPY_INSTEAD_OF_MOVE
cid#1557291 COPY_INSTEAD_OF_MOVE
cid#1557290 COPY_INSTEAD_OF_MOVE
cid#1557271 COPY_INSTEAD_OF_MOVE
cid#1557266 COPY_INSTEAD_OF_MOVE
cid#1557262 COPY_INSTEAD_OF_MOVE
cid#1557259 COPY_INSTEAD_OF_MOVE
cid#1557246 COPY_INSTEAD_OF_MOVE
cid#1557242 COPY_INSTEAD_OF_MOVE
cid#1557241 COPY_INSTEAD_OF_MOVE
cid#1557236 COPY_INSTEAD_OF_MOVE
cid#1557228 COPY_INSTEAD_OF_MOVE
cid#1557225 COPY_INSTEAD_OF_MOVE
cid#1557221 COPY_INSTEAD_OF_MOVE
cid#1557217 COPY_INSTEAD_OF_MOVE
cid#1557213 COPY_INSTEAD_OF_MOVE
cid#1557211 COPY_INSTEAD_OF_MOVE
cid#1557209 COPY_INSTEAD_OF_MOVE
cid#1557205 COPY_INSTEAD_OF_MOVE
cid#1557204 COPY_INSTEAD_OF_MOVE
cid#1557193 COPY_INSTEAD_OF_MOVE
cid#1556082 COPY_INSTEAD_OF_MOVE

Change-Id: I07f195a79a69d4bac0d14317854efc88d6fe94d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171927
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara 2024-08-15 20:19:59 +01:00
parent 4551356827
commit c93eb54c87
50 changed files with 60 additions and 62 deletions

View File

@ -686,7 +686,7 @@ void LibPage::InsertLib()
xLibDlg->EnableReference(false);
weld::DialogController::runAsync(xLibDlg, [aContExtension, xDlgURLObj=std::move(xDlgURLObj), aExtension,
aLibExtension, xModURLObj, xLibDlg,
aLibExtension, xModURLObj=std::move(xModURLObj), xLibDlg,
xDlgLibContImport, xModLibContImport, this](sal_Int32 nResult)
{
if (!nResult )

View File

@ -213,7 +213,7 @@ void BColorStops::replaceStartColor(const BColor& rStart)
aNewColorStops.insert(aNewColorStops.end(), a1stNonStartColor, end());
// assign & done
*this = aNewColorStops;
*this = std::move(aNewColorStops);
}
/* Tooling method that allows to replace the EndColor in a
@ -657,7 +657,7 @@ void BColorStops::doApplyAxial()
}
// apply color stops
*this = aNewColorStops;
*this = std::move(aNewColorStops);
}
void BColorStops::doApplySteps(sal_uInt16 nStepCount)

View File

@ -1120,7 +1120,7 @@ constexpr OUStringLiteral PARAMETRICPOLYPOLYGON_IMPLEMENTATION_NAME = u"Canvas::
cairo_set_source_surface( pCairo.get(), pSurface->getCairoSurface().get(), 0, 0 );
cairo_paint( pCairo.get() );
pSurface = pScaledSurface;
pSurface = std::move(pScaledSurface);
aMatrix.xx = aMatrix.yy = 1;
cairo_set_matrix( mpCairo.get(), &aMatrix );

View File

@ -201,7 +201,7 @@ void ObjectHierarchy::createLegendTree(
tChildContainer aLegendEntryOIDs;
lcl_getChildOIDs( aLegendEntryOIDs, xLegendShapeContainer );
m_aChildMap[ aLegendOID ] = aLegendEntryOIDs;
m_aChildMap[aLegendOID] = std::move(aLegendEntryOIDs);
}
}

View File

@ -86,7 +86,7 @@ void NumberedCollection::setUntitledPrefix(const OUString& sPrefix)
TNumberedItem aItem;
aItem.xItem = css::uno::WeakReference< css::uno::XInterface >(xComponent);
aItem.nNumber = nFreeNumber;
m_lComponents[pComponent] = aItem;
m_lComponents[pComponent] = std::move(aItem);
return nFreeNumber;

View File

@ -269,7 +269,7 @@ bool ONDXPage::Insert(ONDXNode& rNode, sal_uInt32 nRowsLeft)
ONDXPagePtr aTempParent = aParent;
if (IsLeaf())
{
rIndex.m_aCurLeaf = aNewPage;
rIndex.m_aCurLeaf = std::move(aNewPage);
rIndex.m_nCurNode = rIndex.m_aCurLeaf->Count() - 1;
// free not needed pages, there are no references to those on the page

View File

@ -454,8 +454,8 @@ void SvxSaveTabPage::Reset( const SfxItemSet* )
lODFList.push_back( isODFFormat( sFilter ) );
}
}
pImpl->aFilterArr[nData] = lList;
pImpl->aODFArr[nData] = lODFList;
pImpl->aFilterArr[nData] = std::move(lList);
pImpl->aODFArr[nData] = std::move(lODFList);
}
}
OUString sModule = OfaTreeOptionsDialog::getCurrentFactory_Impl(GetFrame());

View File

@ -1419,7 +1419,7 @@ void getColumnPositions(const Reference<XNameAccess>& _rxQueryColumns,
{
sName = sRealName;
}
o_rColumnNames[sName] = aColDesc;
o_rColumnNames[sName] = std::move(aColDesc);
break;
}

View File

@ -2258,7 +2258,7 @@ void VclMetafileProcessor2D::processMaskPrimitive2D(
else
{
// use mask directly
maClipPolyPolygon = aMask;
maClipPolyPolygon = std::move(aMask);
}
if (maClipPolyPolygon.count())
@ -2501,9 +2501,9 @@ void VclMetafileProcessor2D::processTransparencePrimitive2D(
// VclMetafileProcessor2D anyways to allow to get it
// completely independent from OutputDevice in the long run
GDIMetaFile* pMetaFile(mpOutputDevice->GetConnectMetaFile());
rtl::Reference<::MetaFloatTransparentAction> pAction(
new MetaFloatTransparentAction(aContentMetafile, aPrimitiveRectangle.TopLeft(),
aPrimitiveRectangle.GetSize(), aVCLGradient));
rtl::Reference<::MetaFloatTransparentAction> pAction(new MetaFloatTransparentAction(
aContentMetafile, aPrimitiveRectangle.TopLeft(), aPrimitiveRectangle.GetSize(),
std::move(aVCLGradient)));
pAction->addSVGTransparencyColorStops(aSVGTransparencyColorStops);
pMetaFile->AddAction(pAction);

View File

@ -154,13 +154,9 @@ namespace drawinglayer::processor3d
// set created texture
if(bTransparence)
{
mpTransparenceGeoTexSvx = pNewTex;
}
mpTransparenceGeoTexSvx = std::move(pNewTex);
else
{
mpGeoTexSvx = pNewTex;
}
mpGeoTexSvx = std::move(pNewTex);
// process sub-list
process(rSubSequence);

View File

@ -927,7 +927,7 @@ void BibDataManager::setActiveDataSource(const OUString& rURL)
if(pToolbar)
{
aURL.Complete =".uno:Bib/source";
aEvent.FeatureURL = aURL;
aEvent.FeatureURL = std::move(aURL);
pToolbar->statusChanged( aEvent );
}

View File

@ -1304,7 +1304,7 @@ OUString SvtFileDialog::implGetInitialURL( const OUString& _rPath, std::u16strin
bIsInvalid = implIsInvalid( aFallback.GetMainURL( INetURLObject::DecodeMechanism::NONE ) );
if ( !bIsInvalid )
aURLParser = aFallback;
aURLParser = std::move(aFallback);
}
if ( bIsInvalid )

View File

@ -765,7 +765,7 @@ PathSettings::EChangeOp PathSettings::impl_updatePath(const OUString& sPath
pPathNew = &aPath;
impl_notifyPropListener(sPath, pPathOld, pPathNew);
}
m_lPaths[sPath] = aPath;
m_lPaths[sPath] = std::move(aPath);
}
break;

View File

@ -505,7 +505,7 @@ void HelpLinker::main( std::vector<std::string> &args,
}
fileReader.close();
args = stringList;
args = std::move(stringList);
}
size_t i = 0;

View File

@ -213,7 +213,7 @@ void ThesaurusDispatcher::SetServiceList( const Locale &rLocale,
{
auto pTmpEntry = std::make_shared<LangSvcEntries_Thes>( rSvcImplNames );
pTmpEntry->aSvcRefs = Sequence< Reference < XThesaurus > >( nLen );
aSvcMap[ nLanguage ] = pTmpEntry;
aSvcMap[ nLanguage ] = std::move(pTmpEntry);
}
}
}

View File

@ -248,7 +248,7 @@ void CustomShapeProperties::pushToPropSet(
aAdjustmentVal.Value <<= maAdjustmentGuideList[ i ].maFormula.toInt32();
aAdjustmentVal.State = PropertyState_DIRECT_VALUE;
aAdjustmentVal.Name = maAdjustmentGuideList[ i ].maName;
aAdjustmentValuesRange[ i ] = aAdjustmentVal;
aAdjustmentValuesRange[i] = std::move(aAdjustmentVal);
}
aPropertyMap.setProperty( PROP_AdjustmentValues, aAdjustmentValues);

View File

@ -1215,7 +1215,7 @@ void ScInterpreter::PopExternalSingleRef(
if (xNew->GetType() == svError)
SetError( xNew->GetError());
rToken = xNew;
rToken = std::move(xNew);
if (pFmt)
*pFmt = aFmt;
}

View File

@ -1705,11 +1705,11 @@ void ScInterpreter::ScPow()
{
double fVal;
bool bFlag;
ScMatrixRef pMat = pMat1;
ScMatrixRef pMat = std::move(pMat1);
if (!pMat)
{
fVal = fVal1;
pMat = pMat2;
pMat = std::move(pMat2);
bFlag = true; // double - Matrix
}
else

View File

@ -163,7 +163,7 @@ void lcl_ChartInit(const uno::Reference <embed::XEmbeddedObject>& xObj, ScViewDa
aRangeListRef->Format( aTmpStr, ScRefFlags::RANGE_ABS_3D, rScDoc, rScDoc.GetAddressConvention() );
aRangeString = aTmpStr;
ScChartPositioner aChartPositioner( rScDoc, aRangeListRef );
ScChartPositioner aChartPositioner( rScDoc, std::move(aRangeListRef) );
const ScChartPositionMap* pPositionMap( aChartPositioner.GetPositionMap() );
if( pPositionMap )
{

View File

@ -1564,7 +1564,7 @@ Any SAL_CALL ScExternalDocLinkObj::getByIndex(sal_Int32 nApiIndex)
if (!pTable)
throw lang::IndexOutOfBoundsException();
uno::Reference< sheet::XExternalSheetCache > aSheetCache(new ScExternalSheetCacheObj(mpDocShell, pTable, nIndex));
uno::Reference< sheet::XExternalSheetCache > aSheetCache(new ScExternalSheetCacheObj(mpDocShell, std::move(pTable), nIndex));
return Any(aSheetCache);
}

View File

@ -140,7 +140,7 @@ public:
// see if is better than original, if so replace
if (fCandidateFitness > mrDataProvider.calculateFitness(rOriginal.mVariables))
{
maPopulation[x] = aCandidate;
maPopulation[x] = std::move(aCandidate);
if (fCandidateFitness > mfBestFitness)
{

View File

@ -304,7 +304,7 @@ namespace sfx2
::std::for_each(
aFilterClasses.begin(),
aFilterClasses.end(),
ReadLocalFilter( aFilterClassesNode, _rLocalClasses )
ReadLocalFilter( std::move(aFilterClassesNode), _rLocalClasses )
);
}

View File

@ -462,7 +462,7 @@ uno::Reference<security::XCertificate> SfxObjectShell::GetSignPDFCertificate() c
return uno::Reference<security::XCertificate>(it->second, uno::UNO_QUERY);
}
static void sendErrorToLOK(ErrCodeMsg error)
static void sendErrorToLOK(const ErrCodeMsg& error)
{
if (error.GetCode().GetClass() == ErrCodeClass::NONE)
return;

View File

@ -3824,7 +3824,7 @@ embed::VisualRepresentation SAL_CALL SfxBaseModel::getPreferredVisualRepresentat
embed::VisualRepresentation aVisualRepresentation;
aVisualRepresentation.Data = getTransferData( aDataFlavor );
aVisualRepresentation.Flavor = aDataFlavor;
aVisualRepresentation.Flavor = std::move(aDataFlavor);
return aVisualRepresentation;
}

View File

@ -146,7 +146,7 @@ void SfxURLToolBoxControl_Impl::OpenURL( const OUString& rName ) const
SfxURLToolBoxControl_Impl::ExecuteInfo* pExecuteInfo = new SfxURLToolBoxControl_Impl::ExecuteInfo;
pExecuteInfo->xDispatch = xDispatch;
pExecuteInfo->aTargetURL = aTargetURL;
pExecuteInfo->aTargetURL = std::move(aTargetURL);
pExecuteInfo->aArgs = {
comphelper::makePropertyValue(u"Referer"_ustr, u"private:user"_ustr),
comphelper::makePropertyValue(u"FileName"_ustr, aName)

View File

@ -145,7 +145,7 @@ namespace slideshow::internal
xPropSet->getPropertyValue(u"Width"_ustr) >>= nDocWidth;
xPropSet->getPropertyValue(u"Height"_ustr) >>= nDocHeight;
mpMtf = xMtf;
mpMtf = std::move(xMtf);
maBounds = ::basegfx::B2DRectangle( 0,0,nDocWidth, nDocHeight );
}

View File

@ -55,7 +55,7 @@ namespace slideshow::internal
LayerSharedPtr pLayer = rShape.second.lock();
if( pLayer && pLayer != pCurrLayer )
{
pCurrLayer = pLayer;
pCurrLayer = std::move(pLayer);
pCurrViewLayer = layerFunc(pCurrLayer);
}

View File

@ -174,7 +174,7 @@ namespace sdr::overlay
drawinglayer::geometry::ViewInformation2D aViewInformation(maViewInformation2D);
aViewInformation.setViewTransformation(maViewTransformation);
aViewInformation.setViewport(aViewRange);
pThis->maViewInformation2D = aViewInformation;
pThis->maViewInformation2D = std::move(aViewInformation);
pThis->mfDiscreteOne = 0.0;
}

View File

@ -463,7 +463,7 @@ void SdrCaptionObj::ImpCalcTail2(const ImpCaptParams& rPara, tools::Polygon& rPo
if (!rPara.bFixedAngle) {
// TODO: Implementation missing.
}
rPoly=aPol;
rPoly = std::move(aPol);
}
void SdrCaptionObj::ImpCalcTail3(const ImpCaptParams& rPara, tools::Polygon& rPoly, tools::Rectangle const & rRect)

View File

@ -235,7 +235,7 @@ void SdrTableRTFParser::InsertCell( RtfImportInfo const * pInfo )
{
RTFCellInfoPtr xLastCell( (*mxLastRow)[mnVMergeIdx] );
if (xLastCell->mnRowSpan)
xCellInfo->mxVMergeCell = xLastCell;
xCellInfo->mxVMergeCell = std::move(xLastCell);
else
xCellInfo->mxVMergeCell = xLastCell->mxVMergeCell;
}

View File

@ -502,7 +502,7 @@ Graphic SvXMLGraphicHelper::ImplReadGraphic( const OUString& rPictureStorageName
std::unique_ptr<SvStream> pStream(utl::UcbStreamHelper::CreateStream(aStream.xStream));
Graphic aGraphic = rGraphicFilter.ImportUnloadedGraphic(*pStream);
if (!aGraphic.IsNone())
aReturnGraphic = aGraphic;
aReturnGraphic = std::move(aGraphic);
else
rGraphicFilter.ImportGraphic(aReturnGraphic, u"", *pStream);
}

View File

@ -2009,7 +2009,7 @@ void SwEditShell::RestoreMetadataFieldsAndValidateParagraphSignatures()
}
// Update classification based on results.
lcl_ApplyParagraphClassification(GetDoc(), xModel, xParagraph, xSubject, aResults);
lcl_ApplyParagraphClassification(GetDoc(), xModel, xParagraph, xSubject, std::move(aResults));
// Get Signatures
std::map<OUString, SignatureDescr> aSignatures;

View File

@ -1112,7 +1112,7 @@ void InsertFile(SwUnoCursor* pUnoCursor, const OUString& rURL,
pMed->SetFilter( pFilter );
}
else
pMed.reset(new SfxMedium(sFileName, StreamMode::READ, pFilter, nullptr));
pMed.reset(new SfxMedium(sFileName, StreamMode::READ, std::move(pFilter), nullptr));
}
if(!sFilterOptions.isEmpty())
pMed->GetItemSet().Put( SfxStringItem( SID_FILE_FILTEROPTIONS, sFilterOptions ) );

View File

@ -227,7 +227,7 @@ std::shared_ptr<const SfxFilter> SwIoSystem::GetFileFilter(const OUString& rFile
// there's only a template filter that could be found
if ( pTemplateFilter )
pFilter = pTemplateFilter;
pFilter = std::move(pTemplateFilter);
}
}

View File

@ -3261,7 +3261,7 @@ eF_ResT SwWW8ImplReader::Read_F_Tox( WW8FieldDesc* pF, OUString& rStr )
SwFormToken aToken(TOKEN_TEXT);
aToken.sText = sDelimiter;
*aIt = aToken;
*aIt = std::move(aToken);
aForm.SetPattern(nLevel,
std::move(aPattern));
}

View File

@ -1012,7 +1012,9 @@ void SwDocShell::Edit(
&& pStyle->IsUsed()
&& !pStyle->IsUserDefined();
pDlg->StartExecuteAsync([bIsDefaultPage, bNew, nFamily, nSlot, nNewStyleUndoId, pApplyStyleHelper, pRequest, xTmp, this](sal_Int32 nResult){
pDlg->StartExecuteAsync([bIsDefaultPage, bNew, nFamily, nSlot, nNewStyleUndoId,
pApplyStyleHelper=std::move(pApplyStyleHelper),
pRequest, xTmp, this](sal_Int32 nResult){
if (RET_OK == nResult)
pApplyStyleHelper->apply();

View File

@ -717,7 +717,7 @@ void SwTableShell::Execute(SfxRequest &rReq)
SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
VclPtr<SfxAbstractDialog> pDlg(pFact->CreateNumFormatDialog(GetView().GetFrameWeld(), *pCoreSet));
pDlg->StartExecuteAsync([pDlg, pCoreSet, pSh](sal_uInt32 nResult){
pDlg->StartExecuteAsync([pDlg, pCoreSet=std::move(pCoreSet), pSh](sal_uInt32 nResult){
if (RET_OK == nResult)
{
const SvxNumberInfoItem* pNumberFormatItem

View File

@ -214,7 +214,8 @@ static void sw_CharDialog(SwWrtShell& rWrtSh, bool bUseDialog, bool bApplyToPara
pReq->Ignore(); // the 'old' request is not relevant any more
}
pDlg->StartExecuteAsync([pDlg, &rWrtSh, pCoreSet=std::move(pCoreSet), bSel,
bSelectionPut, bApplyToParagraph, pRequest](sal_Int32 nResult){
bSelectionPut, bApplyToParagraph,
pRequest=std::move(pRequest)](sal_Int32 nResult){
if (nResult == RET_OK)
{
sw_CharDialogResult(pDlg->GetOutputItemSet(), rWrtSh, pCoreSet, bSel, bSelectionPut,

View File

@ -9673,7 +9673,7 @@ void DomainMapper_Impl::AddNewRedline( sal_uInt32 sprmId )
m_pParaMarkerRedline = pNew;
}
// Newly read data will go into this redline.
m_currentRedline = pNew;
m_currentRedline = std::move(pNew);
}
void DomainMapper_Impl::SetCurrentRedlineIsRead()

View File

@ -584,7 +584,7 @@ void VCLXButton::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
aEvent.Source = getXWeak();
aEvent.ActionCommand = maActionCommand;
Callback aCallback = [ this, aEvent ]()
Callback aCallback = [ this, aEvent=std::move(aEvent) ]()
{ this->maActionListeners.actionPerformed( aEvent ); };
ImplExecuteAsyncWithoutSolarLock( aCallback );

View File

@ -1093,7 +1093,7 @@ Content::queryCreatableContentsInfo()
= ucb::ContentInfoAttribute::KIND_FOLDER;
uno::Sequence< beans::Property > aFolderProps( 1 );
aFolderProps.getArray()[ 0 ] = aProp;
aFolderProps.getArray()[0] = std::move(aProp);
aSeq.getArray()[ 1 ].Properties = aFolderProps;
return aSeq;
}

View File

@ -937,11 +937,10 @@ bool Content::insertNewContent( const OUString& rContentType,
false /* ReplaceExisting */ ) ) );
aNewContent.m_xImpl->inserted();
rNewContent = aNewContent;
rNewContent = std::move(aNewContent);
return true;
}
void Content::transferContent( const Content& rSourceContent,
InsertOperation eOperation,
const OUString & rTitle,

View File

@ -210,7 +210,7 @@ bool TextSearch::SearchForward( const OUString &rStr,
*pStart = aRet.startOffset[ 0 ];
*pEnd = aRet.endOffset[ 0 ];
if( pRes )
*pRes = aRet;
*pRes = std::move(aRet);
}
}
}

View File

@ -326,7 +326,7 @@ public:
static void RemoveWindowWidget(const OUString& nWindowId);
// we need to remember original popup window to close it properly (its handled by vcl)
static void RememberPopup(const OUString& nWindowId, VclPtr<vcl::Window> pWidget);
static void RememberPopup(const OUString& nWindowId, const VclPtr<vcl::Window>& pWidget);
static void ForgetPopup(const OUString& nWindowId);
static vcl::Window* FindPopup(const OUString& nWindowId);

View File

@ -785,7 +785,7 @@ void JSInstanceBuilder::RemoveWindowWidget(const OUString& nWindowId)
}
}
void JSInstanceBuilder::RememberPopup(const OUString& nWindowId, VclPtr<vcl::Window> pWidget)
void JSInstanceBuilder::RememberPopup(const OUString& nWindowId, const VclPtr<vcl::Window>& pWidget)
{
GetLOKPopupsMap()[nWindowId] = pWidget;
}

View File

@ -125,7 +125,7 @@ BitmapEx BitmapEmbossGreyFilter::execute(BitmapEx const& rBitmapEx) const
const MapMode aMap(aBitmap.GetPrefMapMode());
const Size aPrefSize(aBitmap.GetPrefSize());
aBitmap = aNewBmp;
aBitmap = std::move(aNewBmp);
aBitmap.SetPrefMapMode(aMap);
aBitmap.SetPrefSize(aPrefSize);

View File

@ -110,7 +110,7 @@ bool GraphicNativeTransform::rotateGeneric(Degree10 aRotation, std::u16string_vi
Graphic aGraphic;
rFilter.ImportGraphic(aGraphic, u"import", aStream);
mrGraphic = aGraphic;
mrGraphic = std::move(aGraphic);
return true;
}

View File

@ -10515,7 +10515,7 @@ void PDFWriterImpl::intersectClipRegion( const basegfx::B2DPolyPolygon& rRegion
}
else
{
m_aGraphicsStack.front().m_aClipRegion = aRegion;
m_aGraphicsStack.front().m_aClipRegion = std::move(aRegion);
m_aGraphicsStack.front().m_bClipRegion = true;
}
}

View File

@ -1564,7 +1564,7 @@ SvStream& ReadRegion(SvStream& rIStrm, vcl::Region& rRegion)
{
std::shared_ptr<RegionBand> xNewRegionBand(std::make_shared<RegionBand>());
bool bSuccess = xNewRegionBand->load(rIStrm);
rRegion.mpRegionBand = xNewRegionBand;
rRegion.mpRegionBand = std::move(xNewRegionBand);
bool bHasPolyPolygon(false);
if (aCompat.GetVersion() >= 2)

View File

@ -1590,7 +1590,7 @@ PPDValue* PPDKey::insertValue(const OUString& rOption, PPDValueType eType, bool
aValue.m_bCustomOption = bCustomOption;
aValue.m_bCustomOptionSetViaApp = false;
aValue.m_eType = eType;
m_aValues[ rOption ] = aValue;
m_aValues[rOption] = std::move(aValue);
PPDValue* pValue = &m_aValues[rOption];
m_aOrderedValues.push_back( pValue );
return pValue;