cid#1555415 COPY_INSTEAD_OF_MOVE

and

cid#1555430 COPY_INSTEAD_OF_MOVE
cid#1555497 COPY_INSTEAD_OF_MOVE
cid#1555542 COPY_INSTEAD_OF_MOVE
cid#1555543 COPY_INSTEAD_OF_MOVE
cid#1555564 COPY_INSTEAD_OF_MOVE
cid#1555593 COPY_INSTEAD_OF_MOVE
cid#1555602 COPY_INSTEAD_OF_MOVE
cid#1555610 COPY_INSTEAD_OF_MOVE
cid#1555667 COPY_INSTEAD_OF_MOVE
cid#1555693 COPY_INSTEAD_OF_MOVE
cid#1555719 COPY_INSTEAD_OF_MOVE
cid#1555757 COPY_INSTEAD_OF_MOVE
cid#1555795 COPY_INSTEAD_OF_MOVE
cid#1555826 COPY_INSTEAD_OF_MOVE
cid#1555847 COPY_INSTEAD_OF_MOVE
cid#1555851 COPY_INSTEAD_OF_MOVE
cid#1555863 COPY_INSTEAD_OF_MOVE
cid#1555865 COPY_INSTEAD_OF_MOVE
cid#1555867 COPY_INSTEAD_OF_MOVE
cid#1555869 COPY_INSTEAD_OF_MOVE
cid#1555879 COPY_INSTEAD_OF_MOVE
cid#1555890 COPY_INSTEAD_OF_MOVE
cid#1555893 COPY_INSTEAD_OF_MOVE
cid#1555900 COPY_INSTEAD_OF_MOVE
cid#1555922 COPY_INSTEAD_OF_MOVE
cid#1555925 COPY_INSTEAD_OF_MOVE

Change-Id: I5d362a09e80eecd282e63c745bfe26eac2631a0d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171492
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Caolán McNamara
2024-08-06 09:13:52 +02:00
parent 6e12713a79
commit ac0514fb3d
25 changed files with 36 additions and 33 deletions
+2 -1
View File
@@ -338,7 +338,8 @@ EntryDescriptor SbTreeListBox::GetEntryDescriptor(const weld::TreeIter* pEntry)
}
}
return EntryDescriptor( aDocument, eLocation, aLibName, aLibSubName, aName, aMethodName, eType );
return EntryDescriptor(std::move(aDocument), eLocation, aLibName,
aLibSubName, aName, aMethodName, eType);
}
SbxItemType SbTreeListBox::ConvertType (EntryType eType)
@@ -196,7 +196,7 @@ void ChartLineStyleWrapper::updateData()
XLineDashItem aDashItem;
aDashItem.PutValue(aLineDash, MID_LINEDASH);
aEvent.FeatureURL = aUrl;
aEvent.FeatureURL = std::move(aUrl);
aDashItem.QueryValue(aEvent.State);
mpControl->statusChanged(aEvent);
}
+1 -1
View File
@@ -702,7 +702,7 @@ void DlgFilterCrit::BuildWherePart()
sal_Int32 nAndPos = _rValues[nPos].getLength();
auto pValues = _rValues.getArray();
pValues[nPos].realloc( _rValues[nPos].getLength() + 1);
pValues[nPos].getArray()[nAndPos] = aValue;
pValues[nPos].getArray()[nAndPos] = std::move(aValue);
}
try
{
@@ -172,11 +172,11 @@ namespace drawinglayer::processor3d
if(bTransparence)
{
mpTransparenceGeoTexSvx = pOldTex;
mpTransparenceGeoTexSvx = std::move(pOldTex);
}
else
{
mpGeoTexSvx = pOldTex;
mpGeoTexSvx = std::move(pOldTex);
}
}
@@ -134,7 +134,7 @@ void TagWindowAsModified::impl_update (const css::uno::Reference< css::frame::XF
// Note: frame was set as member outside ! we have to refresh connections
// regarding window and model only here.
m_xWindow = pWindow;
m_xWindow = std::move(pWindow);
m_xModel = xModel;
}
@@ -905,11 +905,11 @@ std::unique_ptr<TableStyle> CreateTableStyle(const OUString& styleId)
pTableStyle->getFirstCol().getTextBoldStyle() = bFirstColTextBoldStyle;
pTableStyle->getLastCol().getTextBoldStyle() = bLastColTextBoldStyle;
pTableStyle->getWholeTbl().getTextColor() = wholeTblTextColor;
pTableStyle->getFirstRow().getTextColor() = firstRowTextColor;
pTableStyle->getFirstCol().getTextColor() = firstColTextColor;
pTableStyle->getLastRow().getTextColor() = lastRowTextColor;
pTableStyle->getLastCol().getTextColor() = lastColTextColor;
pTableStyle->getWholeTbl().getTextColor() = std::move(wholeTblTextColor);
pTableStyle->getFirstRow().getTextColor() = std::move(firstRowTextColor);
pTableStyle->getFirstCol().getTextColor() = std::move(firstColTextColor);
pTableStyle->getLastRow().getTextColor() = std::move(lastRowTextColor);
pTableStyle->getLastCol().getTextColor() = std::move(lastColTextColor);
pTableStyle->getBand1H().getTextColor() = ::oox::drawingml::Color(); //band1HTextColor
pTableStyle->getBand1V().getTextColor() = ::oox::drawingml::Color(); //band1VTextColor
+1 -1
View File
@@ -114,7 +114,7 @@ ContextHandlerRef TextParagraphContext::onCreateContext( sal_Int32 aElementToken
rtl::Reference<HyperLinkContext> pContext(new HyperLinkContext(
*this, rAttribs, pRun->getTextCharacterProperties().maHyperlinkPropertyMap));
// but create text run context because HyperLinkContext can't process internal w:r, w:t, etc
return new RegularTextRunContext(*this, pRun);
return new RegularTextRunContext(*this, std::move(pRun));
}
default:
SAL_WARN("oox", "TextParagraphContext::onCreateContext: unhandled element: " << getBaseToken(aElementToken));
+2 -2
View File
@@ -1039,14 +1039,14 @@ bool ScDocument::TransferTab( ScDocument& rSrcDoc, SCTAB nSrcPos,
{
aRepeatColRange->aStart.SetTab(nDestPos);
aRepeatColRange->aEnd.SetTab(nDestPos);
maTabs[nDestPos]->SetRepeatColRange(aRepeatColRange);
maTabs[nDestPos]->SetRepeatColRange(std::move(aRepeatColRange));
}
if (auto aRepeatRowRange = rSrcDoc.maTabs[nSrcPos]->GetRepeatRowRange())
{
aRepeatRowRange->aStart.SetTab(nDestPos);
aRepeatRowRange->aEnd.SetTab(nDestPos);
maTabs[nDestPos]->SetRepeatRowRange(aRepeatRowRange);
maTabs[nDestPos]->SetRepeatRowRange(std::move(aRepeatRowRange));
}
if (rSrcDoc.IsPrintEntireSheet(nSrcPos))
+1 -1
View File
@@ -1022,7 +1022,7 @@ bool ScQueryCellIterator< accessType >::FindEqualOrSortedLastInRange( SCCOL& nFo
// Step back conditions are the same as above
nCol = nFoundCol;
nRow = nFoundRow;
maCurPos = aPosSave;
maCurPos = std::move(aPosSave);
return true;
}
if ( (maParam.eSearchType != utl::SearchParam::SearchType::Normal) &&
+2 -2
View File
@@ -1448,11 +1448,11 @@ void ScInterpreter::ScAmpersand()
{
OUString sStr;
bool bFlag;
ScMatrixRef pMat = pMat1;
ScMatrixRef pMat = std::move(pMat1);
if (!pMat)
{
sStr = sStr1;
pMat = pMat2;
pMat = std::move(pMat2);
bFlag = true; // double - Matrix
}
else
+1 -1
View File
@@ -199,7 +199,7 @@ ErrCodeMsg ScXMLImportWrapper::ImportFromComponent(const uno::Reference<uno::XCo
{
xml::sax::SAXException aTmp;
if ( aSaxEx.WrappedException >>= aTmp )
aSaxEx = aTmp;
aSaxEx = std::move(aTmp);
else
bTryChild = false;
}
+1 -1
View File
@@ -374,7 +374,7 @@ void ScDrawShell::ExecDrawAttr( SfxRequest& rReq )
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
VclPtr<SfxAbstractTabDialog> pDlg(pFact->CreateSvxTransformTabDialog(pWin ? pWin->GetFrameWeld() : nullptr, &aNewAttr, pView));
pDlg->StartExecuteAsync([pDlg, pRequest, pView, this](
pDlg->StartExecuteAsync([pDlg, pRequest=std::move(pRequest), pView, this](
sal_Int32 nResult){
if (nResult == RET_OK)
{
+1 -1
View File
@@ -353,7 +353,7 @@ void ScOptSolverDlg::ReadConditions()
m_aConditions.resize( nVecPos + 1 );
if ( nVecPos < static_cast<tools::Long>(m_aConditions.size()) )
m_aConditions[nVecPos] = aRowEntry;
m_aConditions[nVecPos] = std::move(aRowEntry);
// remove default entries at the end
size_t nSize = m_aConditions.size();
+1 -1
View File
@@ -240,7 +240,7 @@ ErrCodeMsg ReadThroughComponent(
{
xml::sax::SAXException aTmp;
if ( aSaxEx.WrappedException >>= aTmp )
aSaxEx = aTmp;
aSaxEx = std::move(aTmp);
else
bTryChild = false;
}
+3 -1
View File
@@ -525,8 +525,10 @@ ErrCode SfxFilterMatcher::DetectFilter( SfxMedium& rMedium, std::shared_ptr<cons
if ( pInstallFilter )
{
if ( IsFilterInstalled_Impl( pInstallFilter ) )
{
// Maybe the filter was installed afterwards.
pFilter = pInstallFilter;
pFilter = std::move(pInstallFilter);
}
}
else
{
+1 -1
View File
@@ -931,7 +931,7 @@ IMPL_LINK_NOARG(SfxDocumentPage, ChangePassHdl, weld::Button&, void)
VclAbstractDialogFactory * pFact = VclAbstractDialogFactory::Create();
m_xPasswordDialog = pFact->CreatePasswordToOpenModifyDialog(GetFrameWeld(), maxPwdLen, false);
m_xPasswordDialog->AllowEmpty(); // needed to remove password
m_xPasswordDialog->StartExecuteAsync([this, pFilter, &rMedSet, pShell](sal_Int32 nResult)
m_xPasswordDialog->StartExecuteAsync([this, pFilter=std::move(pFilter), &rMedSet, pShell](sal_Int32 nResult)
{
if (nResult == RET_OK)
{
+1 -1
View File
@@ -174,7 +174,7 @@ void Test::test() {
css::awt::AsyncCallback::create(
connection_.getComponentContext())->addCallback(
new Callback(
disp, url, css::uno::Sequence< css::beans::PropertyValue >(),
disp, std::move(url), css::uno::Sequence< css::beans::PropertyValue >(),
new Listener(&result)),
css::uno::Any());
// Wait for result.condition or connection_ going stale:
+1 -1
View File
@@ -1394,7 +1394,7 @@ void SmXMLOperatorContext_Impl::TCharacters(const OUString& rChars)
bToken
= starmathdatabase::Identify_SmXMLOperatorContext_Impl(aToken.cMathChar, bIsStretchy);
if (bToken.eType != TERROR)
aToken = bToken;
aToken = std::move(bToken);
}
void SmXMLOperatorContext_Impl::endFastElement(sal_Int32)
+2 -2
View File
@@ -606,8 +606,8 @@ TextEditHighContrastOverlaySelection::createOverlayObjectPrimitive2DSequence()
basegfx::utils::createPolygonFromRect(aClipPolyPolygon.getB2DRange())),
aRGBColor));
aRetval.append(mrTextEditOverlayObject.getTextPrimitives());
aRetval.append(
new drawinglayer::primitive2d::MaskPrimitive2D(aClipPolyPolygon, std::move(aRetval)));
aRetval.append(new drawinglayer::primitive2d::MaskPrimitive2D(std::move(aClipPolyPolygon),
std::move(aRetval)));
}
return aRetval;
+1 -1
View File
@@ -7483,7 +7483,7 @@ bool DocxAttributeOutput::EmbedFontStyle(std::u16string_view name, int tag, Font
oox::getRelationship(Relationship::FONT),
Concat2View("fonts/font" + OUString::number( m_nextFontId ) + ".odttf") ), RTL_TEXTENCODING_UTF8 );
ref.fontKey = fontKeyStr;
m_FontFilesMap[ fontUrl ] = ref;
m_FontFilesMap[ fontUrl ] = std::move(ref);
++m_nextFontId;
}
m_pSerializer->singleElementNS( XML_w, tag,
+1 -1
View File
@@ -2157,7 +2157,7 @@ void RtfAttributeOutput::writeTextFrame(const ww8::Frame& rFrame, bool bTextBox)
if (bTextBox)
{
m_aRunText = aRunText;
m_aRunText = std::move(aRunText);
m_aRunText->append(m_rExport.getStream());
m_rExport.resetStream();
}
+1 -1
View File
@@ -2578,7 +2578,7 @@ void SwBaseShell::GetTextFontCtrlState( SfxItemSet& rSet )
bool bVertical = rSh.IsInVerticalText();
aFont.SetOrientation(Degree10(bVertical ? 2700 : 0));
aFont.SetVertical(bVertical);
GetView().GetEditWin().SetInputContext( InputContext( aFont, InputContextFlags::Text |
GetView().GetEditWin().SetInputContext( InputContext( std::move(aFont), InputContextFlags::Text |
InputContextFlags::ExtText ) );
}
}
+1 -1
View File
@@ -1717,7 +1717,7 @@ bool INetURLObject::convertRelToAbs(OUString const & rTheRelURIRef,
if (bIgnoreFragment)
aNewURI.clearFragment();
rTheAbsURIRef = aNewURI;
rTheAbsURIRef = std::move(aNewURI);
return true;
}
+1 -1
View File
@@ -462,7 +462,7 @@ namespace cmis
{
if ( nullptr == m_pObjectType.get( ) && m_bTransient )
{
std::string typeId = m_bIsFolder ? "cmis:folder" : "cmis:document";
const std::string typeId = m_bIsFolder ? "cmis:folder" : "cmis:document";
// The type to create needs to be fetched from the possible children types
// defined in the parent folder. Then, we'll pick up the first one we find matching
// cmis:folder or cmis:document (depending what we need to create).
+1 -1
View File
@@ -1008,7 +1008,7 @@ bool Bitmap::ImplMakeGreyscales()
const MapMode aMap( maPrefMapMode );
const Size aSize( maPrefSize );
*this = aNewBmp;
*this = std::move(aNewBmp);
maPrefMapMode = aMap;
maPrefSize = aSize;