cid#1557746 COPY_INSTEAD_OF_MOVE

and

cid#1557751 COPY_INSTEAD_OF_MOVE
cid#1557771 COPY_INSTEAD_OF_MOVE
cid#1557775 COPY_INSTEAD_OF_MOVE
cid#1557786 COPY_INSTEAD_OF_MOVE
cid#1557787 COPY_INSTEAD_OF_MOVE
cid#1557790 COPY_INSTEAD_OF_MOVE
cid#1557793 COPY_INSTEAD_OF_MOVE
cid#1557794 COPY_INSTEAD_OF_MOVE

Change-Id: I1b02b6eca303b1a08975ea8aae7c9dbefbada47f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171061
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara 2024-07-25 21:52:19 +01:00
parent a79f9a7932
commit e571123891
8 changed files with 8 additions and 8 deletions

View file

@ -235,7 +235,7 @@ bool ONDXPage::Insert(ONDXNode& rNode, sal_uInt32 nRowsLeft)
ONDXPagePtr aNewRoot = rIndex.CreatePage(nNewPagePos + 1);
aNewRoot->SetChild(this);
rIndex.m_aRoot = aNewRoot;
rIndex.m_aRoot = std::move(aNewRoot);
rIndex.SetRootPos(nNewPagePos + 1);
rIndex.SetPageCount(++nNewPageCount);
}

View file

@ -63,7 +63,7 @@ public:
void erase( const OUString& _rName ) { m_aDefinitions.erase( _rName ); }
void erase( const TContentPtr& _pDefinition );
void insert( const OUString& _rName, TContentPtr _pDefinition )
void insert( const OUString& _rName, const TContentPtr& _pDefinition )
{
m_aDefinitions.emplace( _rName, _pDefinition );
}

View file

@ -6686,7 +6686,7 @@ bool SvxMSDffManager::GetBLIPDirect( SvStream& rBLIPStream, Graphic& rData, tool
if (!aGraphic.IsNone())
{
rData = aGraphic;
rData = std::move(aGraphic);
nRes = ERRCODE_NONE;
}
else

View file

@ -474,7 +474,7 @@ void HelpCompiler::compile()
streamTable.appl_keywords = std::move(aparser.keywords);
streamTable.document_path = fileName;
streamTable.document_title = title;
streamTable.document_title = std::move(title);
std::string actMod = module;
if ( !bExtensionMode && !fileName.empty())

View file

@ -674,7 +674,7 @@ void HyphenatorDispatcher::SetServiceList( const Locale &rLocale,
{
auto pTmpEntry = std::make_shared<LangSvcEntries_Hyph>( rSvcImplNames[0] );
pTmpEntry->aSvcRefs = Sequence< Reference < XHyphenator > >( 1 );
aSvcMap[ nLanguage ] = pTmpEntry;
aSvcMap[ nLanguage ] = std::move(pTmpEntry);
}
}
}

View file

@ -464,7 +464,7 @@ static void lcl_FillSequence( uno::Sequence<beans::PropertyValue>& rSequence, co
aArgument.Name = rDesc.maDefArgNames[i];
aArgument.Description = rDesc.maDefArgDescs[i];
aArgument.IsOptional = rDesc.pDefArgFlags[i].bOptional;
pArgAry[j++] = aArgument;
pArgAry[j++] = std::move(aArgument);
}
pArray[4].Value <<= aArgSeq;
}

View file

@ -119,7 +119,7 @@ XPolygon SdrRectObj::ImpCalcXPoly(const tools::Rectangle& rRect1, tools::Long nR
}
aNewPoly[0]=rRect1.BottomCenter();
aNewPoly[nPointCnt]=aNewPoly[0];
aXPoly=aNewPoly;
aXPoly=std::move(aNewPoly);
// these angles always relate to the top left corner of aRect
if (maGeo.m_nShearAngle) ShearXPoly(aXPoly, getRectangle().TopLeft(), maGeo.mfTanShearAngle);

View file

@ -1583,7 +1583,7 @@ void OOXMLFastContextHandlerTextTableRow::handleGridBefore( const OOXMLValue::Po
NS_ooxml::LN_CT_TcBorders_start, NS_ooxml::LN_CT_TcBorders_end };
for(sal_uInt32 border : borders)
pBorderProps->add(border, fakeNoBorder(), OOXMLProperty::SPRM);
OOXMLValue::Pointer_t pValue( new OOXMLPropertySetValue( pBorderProps ));
OOXMLValue::Pointer_t pValue( new OOXMLPropertySetValue(std::move(pBorderProps)) );
pCellProps->add(NS_ooxml::LN_CT_TcPrBase_tcBorders, pValue, OOXMLProperty::SPRM);
mpParserState->setCellProperties(pCellProps);
}