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