cid#1660333 Variable copied when it could be moved
and cid#1660326 Variable copied when it could be moved cid#1660325 Variable copied when it could be moved cid#1660324 Variable copied when it could be moved cid#1660321 Variable copied when it could be moved cid#1660320 Variable copied when it could be moved cid#1660316 Variable copied when it could be moved cid#1660313 Variable copied when it could be moved cid#1660307 Variable copied when it could be moved Change-Id: I9fe4fa56693f8e3a1efd47294ecb7e0e5588b9b2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188851 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
@@ -985,7 +985,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes( )
|
||||
aResults.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(u"SYSTEM TABLE"_ustr);
|
||||
aResults.push_back(aRow);
|
||||
aResults.push_back(std::move(aRow));
|
||||
|
||||
pResultSet->setRows(std::move(aResults));
|
||||
return pResultSet;
|
||||
|
||||
@@ -300,9 +300,9 @@ void SearchAndParseThread::Append(AdditionInfo& additionInfo)
|
||||
|
||||
SolarMutexGuard aGuard;
|
||||
|
||||
auto newItem = std::make_shared<AdditionsItem>(m_pAdditionsDialog->m_xContentGrid.get(),
|
||||
m_pAdditionsDialog, additionInfo);
|
||||
m_pAdditionsDialog->m_aAdditionsItems.push_back(newItem);
|
||||
m_pAdditionsDialog->m_aAdditionsItems.push_back(std::make_shared<AdditionsItem>(
|
||||
m_pAdditionsDialog->m_xContentGrid.get(), m_pAdditionsDialog, additionInfo));
|
||||
|
||||
std::shared_ptr<AdditionsItem> aCurrentItem = m_pAdditionsDialog->m_aAdditionsItems.back();
|
||||
|
||||
LoadImage(aPreviewFile, aCurrentItem);
|
||||
|
||||
@@ -1474,7 +1474,7 @@ sal_Int32 OTableController::getFirstEmptyRowPosition()
|
||||
auto pTabEdRow = std::make_shared<OTableRow>();
|
||||
pTabEdRow->SetReadOnly(bReadRow);
|
||||
nRet = m_vRowList.size();
|
||||
m_vRowList.push_back( pTabEdRow);
|
||||
m_vRowList.push_back(std::move(pTabEdRow));
|
||||
}
|
||||
return nRet;
|
||||
}
|
||||
|
||||
@@ -501,7 +501,7 @@ void HelpLinker::main( std::vector<std::string> &args,
|
||||
std::string token;
|
||||
fileReader >> token;
|
||||
if (!token.empty())
|
||||
stringList.push_back(token);
|
||||
stringList.push_back(std::move(token));
|
||||
}
|
||||
fileReader.close();
|
||||
|
||||
|
||||
@@ -214,7 +214,7 @@ std::vector<std::shared_ptr<osl::File> > binaryGenerated( const char * clFileNam
|
||||
auto pNewFile = std::make_shared<osl::File>(OStringToOUString(fileName, RTL_TEXTENCODING_UTF8));
|
||||
if(pNewFile->open(osl_File_OpenFlag_Read) == osl::FileBase::E_None)
|
||||
{
|
||||
aGeneratedFiles.push_back(pNewFile);
|
||||
aGeneratedFiles.push_back(std::move(pNewFile));
|
||||
SAL_INFO("opencl.file", "Opening binary file '" << fileName << "' for reading: success");
|
||||
}
|
||||
else
|
||||
|
||||
@@ -286,7 +286,7 @@ namespace sfx2
|
||||
lcl_ReadFilterClass( m_aClassesNode, _rName, aClass );
|
||||
|
||||
// insert the class descriptor
|
||||
m_rClasses.push_back( aClass );
|
||||
m_rClasses.push_back(std::move(aClass));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -383,7 +383,7 @@ namespace slideshow::internal
|
||||
pPolyPoly->setStrokeWidth(mnStrokeWidth);
|
||||
pPolyPoly->setRGBALineColor( maStrokeColor.getIntegerColor() );
|
||||
pPolyPoly->draw();
|
||||
maPolygons.push_back(pPolyPoly);
|
||||
maPolygons.push_back(std::move(pPolyPoly));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1647,7 +1647,7 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
|
||||
pCurrAct, nActionNum );
|
||||
|
||||
// add aTotalComponents as a new entry to aCCList
|
||||
aCCList.push_back( aTotalComponents );
|
||||
aCCList.push_back(std::move(aTotalComponents));
|
||||
|
||||
SAL_WARN_IF( aTotalComponents.aComponentList.empty(), "vcl",
|
||||
"Printer::GetPreparedMetaFile empty component" );
|
||||
|
||||
@@ -275,7 +275,7 @@ void XSecController::setDate(
|
||||
{
|
||||
InternalSignatureInformation isi(nSecurityId, nullptr);
|
||||
isi.signatureInfor.stDateTime = rDateTime;
|
||||
m_vInternalSignatureInformations.push_back( isi );
|
||||
m_vInternalSignatureInformations.push_back(std::move(isi));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user