cid#1554844 COPY_INSTEAD_OF_MOVE
and cid#1554878 COPY_INSTEAD_OF_MOVE cid#1554907 COPY_INSTEAD_OF_MOVE cid#1555082 COPY_INSTEAD_OF_MOVE cid#1555224 COPY_INSTEAD_OF_MOVE cid#1555301 COPY_INSTEAD_OF_MOVE cid#1555378 COPY_INSTEAD_OF_MOVE cid#1555395 COPY_INSTEAD_OF_MOVE cid#1555452 COPY_INSTEAD_OF_MOVE cid#1555466 COPY_INSTEAD_OF_MOVE cid#1555514 COPY_INSTEAD_OF_MOVE cid#1555566 COPY_INSTEAD_OF_MOVE cid#1555753 COPY_INSTEAD_OF_MOVE cid#1555782 COPY_INSTEAD_OF_MOVE cid#1555825 COPY_INSTEAD_OF_MOVE cid#1555842 COPY_INSTEAD_OF_MOVE cid#1555891 COPY_INSTEAD_OF_MOVE cid#1555917 COPY_INSTEAD_OF_MOVE cid#1555961 COPY_INSTEAD_OF_MOVE cid#1556021 COPY_INSTEAD_OF_MOVE cid#1556055 COPY_INSTEAD_OF_MOVE cid#1556307 COPY_INSTEAD_OF_MOVE cid#1556349 COPY_INSTEAD_OF_MOVE cid#1556436 COPY_INSTEAD_OF_MOVE cid#1556665 COPY_INSTEAD_OF_MOVE cid#1556696 COPY_INSTEAD_OF_MOVE cid#1556718 COPY_INSTEAD_OF_MOVE cid#1556775 COPY_INSTEAD_OF_MOVE cid#1556835 COPY_INSTEAD_OF_MOVE cid#1556877 COPY_INSTEAD_OF_MOVE cid#1556994 COPY_INSTEAD_OF_MOVE cid#1557010 COPY_INSTEAD_OF_MOVE cid#1557074 COPY_INSTEAD_OF_MOVE cid#1557111 COPY_INSTEAD_OF_MOVE cid#1557142 COPY_INSTEAD_OF_MOVE cid#1557163 COPY_INSTEAD_OF_MOVE cid#1557164 COPY_INSTEAD_OF_MOVE cid#1557214 COPY_INSTEAD_OF_MOVE cid#1557254 COPY_INSTEAD_OF_MOVE cid#1557322 COPY_INSTEAD_OF_MOVE cid#1557327 COPY_INSTEAD_OF_MOVE cid#1557492 COPY_INSTEAD_OF_MOVE cid#1557565 COPY_INSTEAD_OF_MOVE cid#1557663 COPY_INSTEAD_OF_MOVE cid#1557798 COPY_INSTEAD_OF_MOVE Change-Id: I2ae9c184dcc18d44a65437e18c49e16b27f4d81d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174893 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
parent
3efad499bf
commit
23d7910c1e
38 changed files with 52 additions and 52 deletions
|
@ -325,7 +325,7 @@ Reference< XAccessible > OAccessibleMenuBaseComponent::GetChild( sal_Int64 i )
|
||||||
// set states
|
// set states
|
||||||
pChild->SetStates();
|
pChild->SetStates();
|
||||||
|
|
||||||
xChild = pChild;
|
xChild = std::move(pChild);
|
||||||
|
|
||||||
// insert into menu item list
|
// insert into menu item list
|
||||||
m_aAccessibleChildren[i] = xChild;
|
m_aAccessibleChildren[i] = xChild;
|
||||||
|
|
|
@ -1124,7 +1124,7 @@ static bool lcl_moveSeriesOrCheckIfMoveIsAllowed(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
xFormerChartType = xCurrentChartType;
|
xFormerChartType = std::move(xCurrentChartType);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1762,7 +1762,7 @@ Diagram::tTemplateWithServiceName
|
||||||
|
|
||||||
if (xTempl.is() && xTempl->matchesTemplate2(this, true))
|
if (xTempl.is() && xTempl->matchesTemplate2(this, true))
|
||||||
{
|
{
|
||||||
aResult.xChartTypeTemplate = xTempl;
|
aResult.xChartTypeTemplate = std::move(xTempl);
|
||||||
aResult.sServiceName = aServiceNames[ i ];
|
aResult.sServiceName = aServiceNames[ i ];
|
||||||
bTemplateFound = true;
|
bTemplateFound = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -241,7 +241,7 @@ InterpretedData StockDataInterpreter::interpretDataSource(
|
||||||
xSeries = new DataSeries;
|
xSeries = new DataSeries;
|
||||||
assert( xSeries.is() );
|
assert( xSeries.is() );
|
||||||
xSeries->setData( aSequences[nGroupIndex][nSeriesIdx] );
|
xSeries->setData( aSequences[nGroupIndex][nSeriesIdx] );
|
||||||
pResultSerie[nSeriesIdx] = xSeries;
|
pResultSerie[nSeriesIdx] = std::move(xSeries);
|
||||||
}
|
}
|
||||||
catch( const uno::Exception & )
|
catch( const uno::Exception & )
|
||||||
{
|
{
|
||||||
|
|
|
@ -2816,7 +2816,7 @@ std::vector< ViewLegendEntry > VSeriesPlotter::createLegendEntriesForSeries(
|
||||||
// set CID to symbol for selection
|
// set CID to symbol for selection
|
||||||
if( xShape.is() )
|
if( xShape.is() )
|
||||||
{
|
{
|
||||||
aEntry.xSymbol = xSymbolGroup;
|
aEntry.xSymbol = std::move(xSymbolGroup);
|
||||||
|
|
||||||
OUString aChildParticle( ObjectIdentifier::createChildParticleWithIndex( OBJECTTYPE_DATA_POINT, nIdx ) );
|
OUString aChildParticle( ObjectIdentifier::createChildParticleWithIndex( OBJECTTYPE_DATA_POINT, nIdx ) );
|
||||||
aChildParticle = ObjectIdentifier::addChildParticle( aChildParticle, ObjectIdentifier::createChildParticleWithIndex( OBJECTTYPE_LEGEND_ENTRY, 0 ) );
|
aChildParticle = ObjectIdentifier::addChildParticle( aChildParticle, ObjectIdentifier::createChildParticleWithIndex( OBJECTTYPE_LEGEND_ENTRY, 0 ) );
|
||||||
|
@ -2932,7 +2932,7 @@ std::vector<ViewLegendSymbol> VSeriesPlotter::createSymbolsForSeries(
|
||||||
// set CID to symbol for selection
|
// set CID to symbol for selection
|
||||||
if (xShape.is())
|
if (xShape.is())
|
||||||
{
|
{
|
||||||
aEntry.xSymbol = xSymbolGroup;
|
aEntry.xSymbol = std::move(xSymbolGroup);
|
||||||
aResult.push_back(aEntry);
|
aResult.push_back(aEntry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -241,7 +241,7 @@ codemaker::UnoType::Sort TypeManager::decompose(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (entity != nullptr) {
|
if (entity != nullptr) {
|
||||||
*entity = ent;
|
*entity = std::move(ent);
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
codemaker::UnoType::Sort::InstantiatedPolymorphicStruct;
|
codemaker::UnoType::Sort::InstantiatedPolymorphicStruct;
|
||||||
|
|
|
@ -159,7 +159,7 @@ void Access::markChildAsModified(rtl::Reference< ChildAccess > const & child) {
|
||||||
parent->modifiedChildren_.emplace(
|
parent->modifiedChildren_.emplace(
|
||||||
p->getNameInternal(),
|
p->getNameInternal(),
|
||||||
ModifiedChild(static_cast< ChildAccess * >(p.get()), false));
|
ModifiedChild(static_cast< ChildAccess * >(p.get()), false));
|
||||||
p = parent;
|
p = std::move(parent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2287,7 +2287,7 @@ rtl::Reference< Access > Access::getNotificationRoot() {
|
||||||
if (!parent.is()) {
|
if (!parent.is()) {
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
p = parent;
|
p = std::move(parent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -544,7 +544,7 @@ SQLHANDLE OConnection::createStatementHandle()
|
||||||
{
|
{
|
||||||
rtl::Reference xConnection(new OConnection(m_pDriverHandleCopy,m_xDriver.get()));
|
rtl::Reference xConnection(new OConnection(m_pDriverHandleCopy,m_xDriver.get()));
|
||||||
xConnection->Construct(m_sURL,getConnectionInfo());
|
xConnection->Construct(m_sURL,getConnectionInfo());
|
||||||
xConnectionTemp = xConnection;
|
xConnectionTemp = std::move(xConnection);
|
||||||
bNew = true;
|
bNew = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -700,7 +700,7 @@ IMPL_LINK_NOARG(SvxLineDefTabPage, ClickLoadHdl_Impl, weld::Button&, void)
|
||||||
|
|
||||||
if( pDshLst->Load() )
|
if( pDshLst->Load() )
|
||||||
{
|
{
|
||||||
pDashList = pDshLst;
|
pDashList = std::move(pDshLst);
|
||||||
static_cast<SvxLineTabDialog*>(GetDialogController())->SetNewDashList( pDashList );
|
static_cast<SvxLineTabDialog*>(GetDialogController())->SetNewDashList( pDashList );
|
||||||
|
|
||||||
m_xLbLineStyles->clear();
|
m_xLbLineStyles->clear();
|
||||||
|
|
|
@ -797,7 +797,7 @@ void OKeySet::copyRowValue(const ORowSetRow& _rInsertRow, ORowSetRow const & _rK
|
||||||
rtl::Reference aCopy(
|
rtl::Reference aCopy(
|
||||||
new ORowSetValueVector(*m_aParameterValueForCache));
|
new ORowSetValueVector(*m_aParameterValueForCache));
|
||||||
(*aCopy)[i] = (*_rInsertRow)[parameterName.second.nPosition];
|
(*aCopy)[i] = (*_rInsertRow)[parameterName.second.nPosition];
|
||||||
m_aUpdatedParameter[i_nBookmark] = aCopy;
|
m_aUpdatedParameter[i_nBookmark] = std::move(aCopy);
|
||||||
bChanged = true;
|
bChanged = true;
|
||||||
}
|
}
|
||||||
++aParaValuesIter;
|
++aParaValuesIter;
|
||||||
|
|
|
@ -730,7 +730,7 @@ RequestHandler::Status RequestHandler::Enable(bool ipc)
|
||||||
assert(thread.is() == (stat == IPC_STATUS_OK));
|
assert(thread.is() == (stat == IPC_STATUS_OK));
|
||||||
if (stat == IPC_STATUS_OK) {
|
if (stat == IPC_STATUS_OK) {
|
||||||
pGlobal = new RequestHandler;
|
pGlobal = new RequestHandler;
|
||||||
pGlobal->mIpcThread = thread;
|
pGlobal->mIpcThread = std::move(thread);
|
||||||
pGlobal->mIpcThread->start(pGlobal.get());
|
pGlobal->mIpcThread->start(pGlobal.get());
|
||||||
}
|
}
|
||||||
return stat;
|
return stat;
|
||||||
|
|
|
@ -1195,7 +1195,7 @@ rtl::Reference<SdrObject> SdrEscherImport::ProcessObj( SvStream& rSt, DffObjData
|
||||||
rtl::Reference<SdrObject> pGroup = new SdrObjGroup(*pSdrModel);
|
rtl::Reference<SdrObject> pGroup = new SdrObjGroup(*pSdrModel);
|
||||||
pGroup->GetSubList()->NbcInsertObject( pRet.get() );
|
pGroup->GetSubList()->NbcInsertObject( pRet.get() );
|
||||||
pGroup->GetSubList()->NbcInsertObject( pTObj.get() );
|
pGroup->GetSubList()->NbcInsertObject( pTObj.get() );
|
||||||
pRet = pGroup;
|
pRet = std::move(pGroup);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
pRet = pTObj.get();
|
pRet = pTObj.get();
|
||||||
|
|
|
@ -276,14 +276,14 @@ void SAL_CALL OFormattedFieldWrapper::read(const Reference<XObjectInputStream>&
|
||||||
if (!pBasicReader->lastReadWasFormattedFake())
|
if (!pBasicReader->lastReadWasFormattedFake())
|
||||||
{
|
{
|
||||||
// yes -> all fine
|
// yes -> all fine
|
||||||
m_xAggregate = pBasicReader;
|
m_xAggregate = std::move(pBasicReader);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{ // no -> substitute it with a formatted model
|
{ // no -> substitute it with a formatted model
|
||||||
// let the formatted model do the reading
|
// let the formatted model do the reading
|
||||||
m_xFormattedPart.set(new OFormattedModel(m_xContext));
|
m_xFormattedPart.set(new OFormattedModel(m_xContext));
|
||||||
m_xFormattedPart->read(_rxInStream);
|
m_xFormattedPart->read(_rxInStream);
|
||||||
m_pEditPart = pBasicReader;
|
m_pEditPart = std::move(pBasicReader);
|
||||||
m_xAggregate.set( m_xFormattedPart, UNO_QUERY );
|
m_xAggregate.set( m_xFormattedPart, UNO_QUERY );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -345,7 +345,7 @@ void LoadEnv::initializeUIDefaults( const css::uno::Reference< css::uno::XCompon
|
||||||
xInteractionHandler = pQuietInteraction.get();
|
xInteractionHandler = pQuietInteraction.get();
|
||||||
if ( o_ppQuietInteraction != nullptr )
|
if ( o_ppQuietInteraction != nullptr )
|
||||||
{
|
{
|
||||||
*o_ppQuietInteraction = pQuietInteraction;
|
*o_ppQuietInteraction = std::move(pQuietInteraction);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -300,7 +300,7 @@ rtl::Reference<XFContentContainer> LwpBulletStyleMgr::AddBulletList(
|
||||||
{
|
{
|
||||||
theItem->Add(prevList.get());
|
theItem->Add(prevList.get());
|
||||||
}
|
}
|
||||||
prevList = theList;
|
prevList = std::move(theList);
|
||||||
}
|
}
|
||||||
return InnerItem;
|
return InnerItem;
|
||||||
}
|
}
|
||||||
|
|
|
@ -514,7 +514,7 @@ LwpHeaderLayout* LwpPageLayout::GetHeaderLayout()
|
||||||
SAL_WARN("lwp", "loop in layout");
|
SAL_WARN("lwp", "loop in layout");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
xLay = xNext;
|
xLay = std::move(xNext);
|
||||||
}
|
}
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
@ -534,7 +534,7 @@ LwpFooterLayout* LwpPageLayout::GetFooterLayout()
|
||||||
SAL_WARN("lwp", "loop in layout");
|
SAL_WARN("lwp", "loop in layout");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
xLay = xNext;
|
xLay = std::move(xNext);
|
||||||
}
|
}
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
|
@ -422,7 +422,7 @@ bool ZipPackageStream::ParsePackageRawStream()
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_xBaseEncryptionData = xTempEncrData;
|
m_xBaseEncryptionData = std::move(xTempEncrData);
|
||||||
SetIsEncrypted ( true );
|
SetIsEncrypted ( true );
|
||||||
// it's already compressed and encrypted
|
// it's already compressed and encrypted
|
||||||
m_bToBeEncrypted = m_bToBeCompressed = false;
|
m_bToBeEncrypted = m_bToBeCompressed = false;
|
||||||
|
|
|
@ -342,7 +342,7 @@ void ScSelectionTransferObj::CreateDrawData()
|
||||||
pTransferObj->SetDrawPersist(aDragShellRef); // keep persist for ole objects alive
|
pTransferObj->SetDrawPersist(aDragShellRef); // keep persist for ole objects alive
|
||||||
pTransferObj->SetDragSource( pDrawView ); // copies selection
|
pTransferObj->SetDragSource( pDrawView ); // copies selection
|
||||||
|
|
||||||
mxDrawData = pTransferObj;
|
mxDrawData = std::move(pTransferObj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
OSL_ENSURE( mxDrawData.is(), "can't create DrawData" );
|
OSL_ENSURE( mxDrawData.is(), "can't create DrawData" );
|
||||||
|
|
|
@ -3034,13 +3034,13 @@ bool ScExternalRefManager::refreshSrcDocument(sal_uInt16 nFileId)
|
||||||
if (it != maDocShells.end())
|
if (it != maDocShells.end())
|
||||||
{
|
{
|
||||||
it->second.maShell->DoClose();
|
it->second.maShell->DoClose();
|
||||||
it->second.maShell = xDocShell;
|
it->second.maShell = std::move(xDocShell);
|
||||||
it->second.maLastAccess = tools::Time(tools::Time::SYSTEM);
|
it->second.maLastAccess = tools::Time(tools::Time::SYSTEM);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SrcShell aSrcDoc;
|
SrcShell aSrcDoc;
|
||||||
aSrcDoc.maShell = xDocShell;
|
aSrcDoc.maShell = std::move(xDocShell);
|
||||||
aSrcDoc.maLastAccess = tools::Time(tools::Time::SYSTEM);
|
aSrcDoc.maLastAccess = tools::Time(tools::Time::SYSTEM);
|
||||||
cacheNewDocShell(nFileId, aSrcDoc);
|
cacheNewDocShell(nFileId, aSrcDoc);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1527,8 +1527,8 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
pNotesMaster = pNewNotesMaster;
|
pNotesMaster = std::move(pNewNotesMaster);
|
||||||
pMaster = pNewMaster;
|
pMaster = std::move(pNewMaster);
|
||||||
|
|
||||||
// layout name needs to be unique
|
// layout name needs to be unique
|
||||||
aTargetNewLayoutName = pMaster->GetLayoutName();
|
aTargetNewLayoutName = pMaster->GetLayoutName();
|
||||||
|
|
|
@ -766,7 +766,7 @@ static bool updateMotionPathImpl( CustomAnimationPane& rPane, ::sd::View& rView,
|
||||||
rtl::Reference< MotionPathTag > xTag( *aMIter );
|
rtl::Reference< MotionPathTag > xTag( *aMIter );
|
||||||
if( !xTag->isDisposed() )
|
if( !xTag->isDisposed() )
|
||||||
{
|
{
|
||||||
xMotionPathTag = xTag;
|
xMotionPathTag = std::move(xTag);
|
||||||
rOldTags.erase( aMIter );
|
rOldTags.erase( aMIter );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -910,7 +910,7 @@ void AnnotationManagerImpl::onSelectionChanged()
|
||||||
rtl::Reference<SdPage> xPage = mrBase.GetMainViewShell()->getCurrentPage();
|
rtl::Reference<SdPage> xPage = mrBase.GetMainViewShell()->getCurrentPage();
|
||||||
if (xPage != mxCurrentPage)
|
if (xPage != mxCurrentPage)
|
||||||
{
|
{
|
||||||
mxCurrentPage = xPage;
|
mxCurrentPage = std::move(xPage);
|
||||||
UpdateTags(true);
|
UpdateTags(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -454,7 +454,7 @@ ShutdownIcon* ShutdownIcon::createInstance()
|
||||||
try {
|
try {
|
||||||
rtl::Reference<ShutdownIcon> pIcon(new ShutdownIcon( comphelper::getProcessComponentContext() ));
|
rtl::Reference<ShutdownIcon> pIcon(new ShutdownIcon( comphelper::getProcessComponentContext() ));
|
||||||
pIcon->init ();
|
pIcon->init ();
|
||||||
pShutdownIcon = pIcon;
|
pShutdownIcon = std::move(pIcon);
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,7 @@ storeError OStoreDirectory_Impl::create (
|
||||||
m_nPath = rtl_crc32 (m_nPath, "/", 1);
|
m_nPath = rtl_crc32 (m_nPath, "/", 1);
|
||||||
|
|
||||||
// Save page manager, and descriptor.
|
// Save page manager, and descriptor.
|
||||||
m_xManager = xManager;
|
m_xManager = std::move(xManager);
|
||||||
m_aDescr = xNode->m_aDescr;
|
m_aDescr = xNode->m_aDescr;
|
||||||
|
|
||||||
return store_E_None;
|
return store_E_None;
|
||||||
|
|
|
@ -87,7 +87,7 @@ storeError OStoreLockBytes::create (
|
||||||
if (eErrCode != store_E_None)
|
if (eErrCode != store_E_None)
|
||||||
return eErrCode;
|
return eErrCode;
|
||||||
|
|
||||||
m_xManager = xManager;
|
m_xManager = std::move(xManager);
|
||||||
m_xNode = xNode;
|
m_xNode = xNode;
|
||||||
m_bWriteable = (eMode != storeAccessMode::ReadOnly);
|
m_bWriteable = (eMode != storeAccessMode::ReadOnly);
|
||||||
|
|
||||||
|
|
|
@ -133,9 +133,9 @@ Reference< XAccessible > SvxGraphCtrlAccessibleContext::getAccessible( const Sdr
|
||||||
xAccessibleShape = pAcc.get();
|
xAccessibleShape = pAcc.get();
|
||||||
if (pAcc.is())
|
if (pAcc.is())
|
||||||
{
|
{
|
||||||
pAcc->Init ();
|
pAcc->Init();
|
||||||
}
|
}
|
||||||
mxShapes[pObj] = pAcc;
|
mxShapes[pObj] = std::move(pAcc);
|
||||||
|
|
||||||
// Create event and inform listeners of the object creation.
|
// Create event and inform listeners of the object creation.
|
||||||
CommitChange( AccessibleEventId::CHILD, Any( xAccessibleShape ), Any( Reference<XAccessible>() ) );
|
CommitChange( AccessibleEventId::CHILD, Any( xAccessibleShape ), Any( Reference<XAccessible>() ) );
|
||||||
|
|
|
@ -255,7 +255,7 @@ void SvxPixelCtlAccessible::NotifyChild(tools::Long nIndex,bool bSelect ,bool bC
|
||||||
{
|
{
|
||||||
xNewChild->CheckChild();
|
xNewChild->CheckChild();
|
||||||
}
|
}
|
||||||
m_xCurChild = xNewChild;
|
m_xCurChild = std::move(xNewChild);
|
||||||
}
|
}
|
||||||
|
|
||||||
rtl::Reference<SvxPixelCtlAccessibleChild> SvxPixelCtlAccessible::CreateChild (tools::Long nIndex,Point mPoint)
|
rtl::Reference<SvxPixelCtlAccessibleChild> SvxPixelCtlAccessible::CreateChild (tools::Long nIndex,Point mPoint)
|
||||||
|
|
|
@ -2612,7 +2612,7 @@ rtl::Reference<SdrObject> SdrObject::ConvertToContourObj(SdrObject* pRet1, bool
|
||||||
for (const rtl::Reference<SdrObject>& pIterObj : *pObjList2)
|
for (const rtl::Reference<SdrObject>& pIterObj : *pObjList2)
|
||||||
pGroup->GetSubList()->NbcInsertObject(ConvertToContourObj(pIterObj.get(), bForceLineDash).get());
|
pGroup->GetSubList()->NbcInsertObject(ConvertToContourObj(pIterObj.get(), bForceLineDash).get());
|
||||||
|
|
||||||
pRet = pGroup;
|
pRet = std::move(pGroup);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -977,7 +977,7 @@ rtl::Reference<SdrObject> SdrGrafObj::DoConvertToPolyObj(bool bBezier, bool bAdd
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pRetval = pLineFill;
|
pRetval = std::move(pLineFill);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -156,7 +156,7 @@ rtl::Reference< AccessibleCell > AccessibleTableShapeImpl::getAccessibleCell (sa
|
||||||
xAccessibleCell->Init();
|
xAccessibleCell->Init();
|
||||||
maChildMap[xCell] = xAccessibleCell;
|
maChildMap[xCell] = xAccessibleCell;
|
||||||
|
|
||||||
xChild = xAccessibleCell;
|
xChild = std::move(xAccessibleCell);
|
||||||
}
|
}
|
||||||
return xChild;
|
return xChild;
|
||||||
}
|
}
|
||||||
|
@ -268,7 +268,7 @@ void SAL_CALL AccessibleTableShapeImpl::modified( const EventObject& /*aEvent*/
|
||||||
}
|
}
|
||||||
|
|
||||||
// move still existing cell from temporary child map to our child map
|
// move still existing cell from temporary child map to our child map
|
||||||
maChildMap[xCell] = xAccessibleCell;
|
maChildMap[xCell] = std::move(xAccessibleCell);
|
||||||
aTempChildMap.erase( iter );
|
aTempChildMap.erase( iter );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -276,7 +276,7 @@ void SAL_CALL AccessibleTableShapeImpl::modified( const EventObject& /*aEvent*/
|
||||||
rtl::Reference< AccessibleCell > xAccessibleCell( new AccessibleCell( mxAccessible, xCell, nChildIndex, mrShapeTreeInfo ) );
|
rtl::Reference< AccessibleCell > xAccessibleCell( new AccessibleCell( mxAccessible, xCell, nChildIndex, mrShapeTreeInfo ) );
|
||||||
|
|
||||||
xAccessibleCell->Init();
|
xAccessibleCell->Init();
|
||||||
maChildMap[xCell] = xAccessibleCell;
|
maChildMap[xCell] = std::move(xAccessibleCell);
|
||||||
}
|
}
|
||||||
|
|
||||||
++nChildIndex;
|
++nChildIndex;
|
||||||
|
|
|
@ -598,7 +598,7 @@ void TableModel::insertColumns( sal_Int32 nIndex, sal_Int32 nCount )
|
||||||
{
|
{
|
||||||
TableColumnRef xNewCol( new TableColumn( this, nIndex+nOffset ) );
|
TableColumnRef xNewCol( new TableColumn( this, nIndex+nOffset ) );
|
||||||
maColumns[nIndex+nOffset] = xNewCol;
|
maColumns[nIndex+nOffset] = xNewCol;
|
||||||
aNewColumns[nOffset] = xNewCol;
|
aNewColumns[nOffset] = std::move(xNewCol);
|
||||||
}
|
}
|
||||||
|
|
||||||
const bool bUndo(mpTableObj->IsInserted() && rModel.IsUndoEnabled());
|
const bool bUndo(mpTableObj->IsInserted() && rModel.IsUndoEnabled());
|
||||||
|
@ -788,7 +788,7 @@ void TableModel::insertRows( sal_Int32 nIndex, sal_Int32 nCount )
|
||||||
{
|
{
|
||||||
TableRowRef xNewRow( new TableRow( this, nIndex+nOffset, nColCount ) );
|
TableRowRef xNewRow( new TableRow( this, nIndex+nOffset, nColCount ) );
|
||||||
maRows[nIndex+nOffset] = xNewRow;
|
maRows[nIndex+nOffset] = xNewRow;
|
||||||
aNewRows[nOffset] = xNewRow;
|
aNewRows[nOffset] = std::move(xNewRow);
|
||||||
}
|
}
|
||||||
|
|
||||||
if( bUndo )
|
if( bUndo )
|
||||||
|
|
|
@ -177,7 +177,7 @@ void SAL_CALL SvxDrawPage::add( const uno::Reference< drawing::XShape >& xShape
|
||||||
pClonedSdrShape->setUnoShape(pShape);
|
pClonedSdrShape->setUnoShape(pShape);
|
||||||
// pShape->InvalidateSdrObject();
|
// pShape->InvalidateSdrObject();
|
||||||
// pShape->Create(pClonedSdrShape, this);
|
// pShape->Create(pClonedSdrShape, this);
|
||||||
pObj = pClonedSdrShape;
|
pObj = std::move(pClonedSdrShape);
|
||||||
bNeededToClone = true;
|
bNeededToClone = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4678,7 +4678,7 @@ void SAL_CALL SwXTextTableStyle::replaceByName(const OUString& rName, const uno:
|
||||||
xStyleToReplaceWith->SetBoxFormat(&m_pTableAutoFormat->GetBoxFormat(nBoxFormat));
|
xStyleToReplaceWith->SetBoxFormat(&m_pTableAutoFormat->GetBoxFormat(nBoxFormat));
|
||||||
m_pTableAutoFormat->GetBoxFormat(nBoxFormat).SetXObject(xStyleToReplaceWith);
|
m_pTableAutoFormat->GetBoxFormat(nBoxFormat).SetXObject(xStyleToReplaceWith);
|
||||||
// make this SwXTextTableStyle use new SwXTextCellStyle
|
// make this SwXTextTableStyle use new SwXTextCellStyle
|
||||||
m_aCellStyles[nCellStyle] = xStyleToReplaceWith;
|
m_aCellStyles[nCellStyle] = std::move(xStyleToReplaceWith);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SAL_CALL SwXTextTableStyle::removeByName(const OUString& /*Name*/)
|
void SAL_CALL SwXTextTableStyle::removeByName(const OUString& /*Name*/)
|
||||||
|
|
|
@ -3805,7 +3805,7 @@ void WW8Export::PrepareStorage()
|
||||||
|
|
||||||
ErrCodeMsg SwWW8Writer::WriteStorage()
|
ErrCodeMsg SwWW8Writer::WriteStorage()
|
||||||
{
|
{
|
||||||
rtl::Reference<SotStorage> pOrigStg;
|
rtl::Reference<SotStorage> xOrigStg;
|
||||||
uno::Reference< packages::XPackageEncryption > xPackageEncryption;
|
uno::Reference< packages::XPackageEncryption > xPackageEncryption;
|
||||||
std::shared_ptr<SvStream> pSotStorageStream;
|
std::shared_ptr<SvStream> pSotStorageStream;
|
||||||
uno::Sequence< beans::NamedValue > aEncryptionData;
|
uno::Sequence< beans::NamedValue > aEncryptionData;
|
||||||
|
@ -3831,7 +3831,7 @@ ErrCodeMsg SwWW8Writer::WriteStorage()
|
||||||
{
|
{
|
||||||
// We have an encryptor
|
// We have an encryptor
|
||||||
// Create new temporary storage for content
|
// Create new temporary storage for content
|
||||||
pOrigStg = m_pStg;
|
xOrigStg = m_pStg;
|
||||||
pSotStorageStream = std::make_shared<SvMemoryStream>();
|
pSotStorageStream = std::make_shared<SvMemoryStream>();
|
||||||
m_pStg = new SotStorage(*pSotStorageStream);
|
m_pStg = new SotStorage(*pSotStorageStream);
|
||||||
}
|
}
|
||||||
|
@ -3854,7 +3854,7 @@ ErrCodeMsg SwWW8Writer::WriteStorage()
|
||||||
uno::Reference<io::XInputStream > xInputStream(new utl::OSeekableInputStreamWrapper(pSotStorageStream.get(), false));
|
uno::Reference<io::XInputStream > xInputStream(new utl::OSeekableInputStreamWrapper(pSotStorageStream.get(), false));
|
||||||
uno::Sequence<beans::NamedValue> aStreams = xPackageEncryption->encrypt(xInputStream);
|
uno::Sequence<beans::NamedValue> aStreams = xPackageEncryption->encrypt(xInputStream);
|
||||||
|
|
||||||
m_pStg = pOrigStg;
|
m_pStg = std::move(xOrigStg);
|
||||||
for (const beans::NamedValue& aStreamData : aStreams)
|
for (const beans::NamedValue& aStreamData : aStreams)
|
||||||
{
|
{
|
||||||
// To avoid long paths split and open substorages recursively
|
// To avoid long paths split and open substorages recursively
|
||||||
|
|
|
@ -541,7 +541,7 @@ Reference< text::XAutoTextGroup > SwGlossaries::GetAutoTextGroup( std::u16string
|
||||||
{ // the group is already cached
|
{ // the group is already cached
|
||||||
if ( !sCompleteGroupName.isEmpty() )
|
if ( !sCompleteGroupName.isEmpty() )
|
||||||
{ // the group still exists -> return it
|
{ // the group still exists -> return it
|
||||||
xGroup = pSwGroup;
|
xGroup = std::move(pSwGroup);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -602,7 +602,7 @@ Reference< text::XAutoTextEntry > SwGlossaries::GetAutoTextEntry(
|
||||||
&& pEntry->GetEntryName() == rEntryName
|
&& pEntry->GetEntryName() == rEntryName
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
xReturn = pEntry;
|
xReturn = std::move(pEntry);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7008,7 +7008,7 @@ void SVTXFormattedField::setFormatsSupplier(const css::uno::Reference< css::util
|
||||||
if (!pNew)
|
if (!pNew)
|
||||||
return; // TODO : how to process ?
|
return; // TODO : how to process ?
|
||||||
|
|
||||||
m_xCurrentSupplier = pNew;
|
m_xCurrentSupplier = std::move(pNew);
|
||||||
if (!pField)
|
if (!pField)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -193,7 +193,7 @@ void SAL_CALL MutableTreeDataModel::setRoot( const Reference< XMutableTreeNode >
|
||||||
throw IllegalArgumentException();
|
throw IllegalArgumentException();
|
||||||
|
|
||||||
xImpl->mbIsInserted = true;
|
xImpl->mbIsInserted = true;
|
||||||
mxRootNode = xImpl;
|
mxRootNode = std::move(xImpl);
|
||||||
|
|
||||||
Reference< XTreeNode > xParentNode;
|
Reference< XTreeNode > xParentNode;
|
||||||
broadcastImpl( aGuard, structure_changed, xParentNode, mxRootNode );
|
broadcastImpl( aGuard, structure_changed, xParentNode, mxRootNode );
|
||||||
|
|
|
@ -580,7 +580,7 @@ Found findEntity(
|
||||||
}
|
}
|
||||||
e->kind
|
e->kind
|
||||||
= unoidl::detail::SourceProviderEntity::KIND_EXTERNAL;
|
= unoidl::detail::SourceProviderEntity::KIND_EXTERNAL;
|
||||||
e->entity = ent;
|
e->entity = std::move(ent);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case unoidl::detail::SourceProviderEntity::KIND_MODULE:
|
case unoidl::detail::SourceProviderEntity::KIND_MODULE:
|
||||||
|
|
|
@ -282,7 +282,7 @@ css::uno::Reference< css::xml::sax::XFastContextHandler > XMLIndexTOCContext::cr
|
||||||
xContext = xNewBodyContext;
|
xContext = xNewBodyContext;
|
||||||
if ( !xBodyContextRef.is() || !xBodyContextRef->HasContent() )
|
if ( !xBodyContextRef.is() || !xBodyContextRef->HasContent() )
|
||||||
{
|
{
|
||||||
xBodyContextRef = xNewBodyContext;
|
xBodyContextRef = std::move(xNewBodyContext);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (nElement == XML_ELEMENT(TEXT, aIndexSourceElementMap[eIndexType]))
|
else if (nElement == XML_ELEMENT(TEXT, aIndexSourceElementMap[eIndexType]))
|
||||||
|
|
Loading…
Reference in a new issue