cid#1556131 COPY_INSTEAD_OF_MOVE
and cid#1556135 COPY_INSTEAD_OF_MOVE cid#1556146 COPY_INSTEAD_OF_MOVE cid#1556164 COPY_INSTEAD_OF_MOVE cid#1556171 COPY_INSTEAD_OF_MOVE cid#1556177 COPY_INSTEAD_OF_MOVE cid#1556181 COPY_INSTEAD_OF_MOVE cid#1556182 COPY_INSTEAD_OF_MOVE cid#1556183 COPY_INSTEAD_OF_MOVE cid#1556192 COPY_INSTEAD_OF_MOVE cid#1556201 COPY_INSTEAD_OF_MOVE cid#1556208 COPY_INSTEAD_OF_MOVE cid#1556215 COPY_INSTEAD_OF_MOVE cid#1556224 COPY_INSTEAD_OF_MOVE cid#1556227 COPY_INSTEAD_OF_MOVE cid#1556228 COPY_INSTEAD_OF_MOVE cid#1556238 COPY_INSTEAD_OF_MOVE cid#1556246 COPY_INSTEAD_OF_MOVE cid#1556247 COPY_INSTEAD_OF_MOVE cid#1556288 COPY_INSTEAD_OF_MOVE cid#1556293 COPY_INSTEAD_OF_MOVE cid#1556305 COPY_INSTEAD_OF_MOVE cid#1556310 COPY_INSTEAD_OF_MOVE cid#1556317 COPY_INSTEAD_OF_MOVE cid#1556321 COPY_INSTEAD_OF_MOVE cid#1556322 COPY_INSTEAD_OF_MOVE cid#1556331 COPY_INSTEAD_OF_MOVE cid#1556339 COPY_INSTEAD_OF_MOVE cid#1556342 COPY_INSTEAD_OF_MOVE cid#1556351 COPY_INSTEAD_OF_MOVE cid#1556358 COPY_INSTEAD_OF_MOVE cid#1556370 COPY_INSTEAD_OF_MOVE cid#1556379 COPY_INSTEAD_OF_MOVE cid#1556390 COPY_INSTEAD_OF_MOVE cid#1556423 COPY_INSTEAD_OF_MOVE cid#1556532 COPY_INSTEAD_OF_MOVE cid#1556561 COPY_INSTEAD_OF_MOVE cid#1556662 COPY_INSTEAD_OF_MOVE cid#1556704 COPY_INSTEAD_OF_MOVE cid#1556730 COPY_INSTEAD_OF_MOVE cid#1556988 COPY_INSTEAD_OF_MOVE cid#1557071 COPY_INSTEAD_OF_MOVE cid#1557081 COPY_INSTEAD_OF_MOVE cid#1557177 COPY_INSTEAD_OF_MOVE Change-Id: I2c723f0fe9a4eefa62a68f47049ed690d06eb0ba Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170932 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
@@ -944,7 +944,7 @@ bool implImportDialog(weld::Window* pWin, const ScriptDocument& rDocument, const
|
||||
return localesAreEqual(aImportDefaultLocale, aTmpLocale);
|
||||
}))
|
||||
{
|
||||
aFirstLocale = aImportDefaultLocale;
|
||||
aFirstLocale = std::move(aImportDefaultLocale);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -178,7 +178,7 @@ void ObjectHierarchy::createTree( const rtl::Reference<::chart::ChartModel>& xCh
|
||||
aTopLevelContainer.emplace_back( ObjectIdentifier::createClassifiedIdentifier( OBJECTTYPE_PAGE, u"" ) );
|
||||
|
||||
if( ! aTopLevelContainer.empty())
|
||||
m_aChildMap[ObjectHierarchy::getRootNodeOID()] = aTopLevelContainer;
|
||||
m_aChildMap[ObjectHierarchy::getRootNodeOID()] = std::move(aTopLevelContainer);
|
||||
}
|
||||
|
||||
void ObjectHierarchy::createLegendTree(
|
||||
|
||||
@@ -119,7 +119,7 @@ InterpretedData DataInterpreter::interpretDataSource(
|
||||
++nSeriesIndex;
|
||||
}
|
||||
|
||||
return { { aSeriesVec }, xCategories };
|
||||
return { { std::move(aSeriesVec) }, xCategories };
|
||||
}
|
||||
|
||||
InterpretedData DataInterpreter::reinterpretDataSeries(
|
||||
|
||||
@@ -250,7 +250,7 @@ InterpretedData StockDataInterpreter::interpretDataSource(
|
||||
}
|
||||
}
|
||||
|
||||
return { aResultSeries, xCategories };
|
||||
return { std::move(aResultSeries), xCategories };
|
||||
}
|
||||
|
||||
// criterion: there must be two groups for stock-charts with volume and all
|
||||
|
||||
@@ -132,7 +132,7 @@ InterpretedData XYDataInterpreter::interpretDataSource(
|
||||
++nSeriesIndex;
|
||||
}
|
||||
|
||||
return { { aSeriesVec }, xCategories };
|
||||
return { { std::move(aSeriesVec) }, xCategories };
|
||||
}
|
||||
|
||||
InterpretedData XYDataInterpreter::reinterpretDataSeries(
|
||||
|
||||
@@ -1423,7 +1423,7 @@ void VSeriesPlotter::createRegressionCurvesShapes( VDataSeries const & rVDataSer
|
||||
|
||||
drawing::PolyPolygonShape3D aClippedPoly;
|
||||
Clipping::clipPolygonAtRectangle( aRegressionPoly, m_pPosHelper->getScaledLogicClipDoubleRect(), aClippedPoly );
|
||||
aRegressionPoly = aClippedPoly;
|
||||
aRegressionPoly = std::move(aClippedPoly);
|
||||
m_pPosHelper->transformScaledLogicToScene( aRegressionPoly );
|
||||
|
||||
awt::Point aDefaultPos;
|
||||
|
||||
@@ -121,7 +121,7 @@ std::shared_ptr<const SfxFilter> impl_lookupExportFilterForUrl( std::u16string_v
|
||||
if ( pFilter && pFilter->CanExport() && pFilter->GetWildcard().Matches( rUrl ) )
|
||||
{
|
||||
if ( !pBestMatch || ( SfxFilterFlags::PREFERED & pFilter->GetFilterFlags() ) )
|
||||
pBestMatch = pFilter;
|
||||
pBestMatch = std::move(pFilter);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2458,7 +2458,7 @@ namespace accessibility
|
||||
{
|
||||
continue;
|
||||
}
|
||||
pProperties[ nCurLen++ ] = aProp;
|
||||
pProperties[ nCurLen++ ] = std::move(aProp);
|
||||
}
|
||||
aProperties.realloc( nCurLen );
|
||||
}
|
||||
|
||||
@@ -363,7 +363,7 @@ namespace editeng
|
||||
)
|
||||
{
|
||||
// then use the second finding
|
||||
aResult = aSecondResult;
|
||||
aResult = std::move(aSecondResult);
|
||||
|
||||
// our current conversion direction changed now
|
||||
m_eCurrentConversionDirection = ( HHC::eHangulToHanja == m_eCurrentConversionDirection )
|
||||
|
||||
@@ -236,7 +236,7 @@ void HandlerCFGAccess::read( HandlerHash& rHandlerHash, PatternHash& rPatternHas
|
||||
}
|
||||
|
||||
// insert the handler info into the normal handler cache
|
||||
rHandlerHash[lNames[nSource]] = aHandler;
|
||||
rHandlerHash[lNames[nSource]] = std::move(aHandler);
|
||||
++nSource;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ void SAL_CALL ComplexToolbarController::execute( sal_Int16 KeyModifier )
|
||||
// Execute dispatch asynchronously
|
||||
ExecuteInfo* pExecuteInfo = new ExecuteInfo;
|
||||
pExecuteInfo->xDispatch = xDispatch;
|
||||
pExecuteInfo->aTargetURL = aTargetURL;
|
||||
pExecuteInfo->aTargetURL = std::move(aTargetURL);
|
||||
pExecuteInfo->aArgs = aArgs;
|
||||
Application::PostUserEvent( LINK(nullptr, ComplexToolbarController , ExecuteHdl_Impl), pExecuteInfo );
|
||||
}
|
||||
|
||||
@@ -2461,7 +2461,7 @@ void Shape::finalizeXShape( XmlFilterBase& rFilter, const Reference< XShapes >&
|
||||
pPowerPointImport->getActualSlidePersist()->setTheme(pTheme);
|
||||
}
|
||||
// Restore the original color map
|
||||
pPowerPointImport->getActualSlidePersist()->setClrMap(pClrMap);
|
||||
pPowerPointImport->getActualSlidePersist()->setClrMap(std::move(pClrMap));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -727,7 +727,7 @@ ScDPTableData* ScDPObject::GetTableData()
|
||||
pData = pGroupData;
|
||||
}
|
||||
|
||||
mpTableData = pData; // after SetCacheId
|
||||
mpTableData = std::move(pData); // after SetCacheId
|
||||
}
|
||||
|
||||
return mpTableData.get();
|
||||
|
||||
@@ -5057,7 +5057,7 @@ std::unique_ptr<ScTokenArray> ScCompiler::CompileString( const OUString& rFormul
|
||||
delete [] pFunctionStack;
|
||||
|
||||
// remember pArr, in case a subsequent CompileTokenArray() is executed.
|
||||
std::unique_ptr<ScTokenArray> pNew(new ScTokenArray( aArr ));
|
||||
std::unique_ptr<ScTokenArray> pNew(new ScTokenArray( std::move(aArr) ));
|
||||
pNew->GenHash();
|
||||
// coverity[escape : FALSE] - ownership of pNew is retained by caller, so pArr remains valid
|
||||
pArr = pNew.get();
|
||||
|
||||
@@ -173,7 +173,7 @@ void ScInterpreter::ScIfJump()
|
||||
}
|
||||
}
|
||||
}
|
||||
xNew = new ScJumpMatrixToken( pJumpMat );
|
||||
xNew = new ScJumpMatrixToken(std::move(pJumpMat));
|
||||
GetTokenMatrixMap().emplace(pCur, xNew);
|
||||
}
|
||||
if (!xNew)
|
||||
|
||||
@@ -3055,8 +3055,8 @@ void ScInterpreter::CalculateTrendGrowth(bool _bGrowth)
|
||||
PushError(FormulaError::MatrixSize);
|
||||
return;
|
||||
}
|
||||
pMatX = pCopyX;
|
||||
pMatY = pCopyY;
|
||||
pMatX = std::move(pCopyX);
|
||||
pMatY = std::move(pCopyY);
|
||||
// DeltaY is possible here; DeltaX depends on nCase, so later
|
||||
fMeanY = lcl_GetMeanOverAll(pMatY, N);
|
||||
for (SCSIZE i=0; i<N; i++)
|
||||
|
||||
@@ -1183,17 +1183,16 @@ rtl::Reference<SdrObject> XclImpLineObj::DoCreateSdrObj( XclImpDffConverter& rDf
|
||||
}
|
||||
#undef EXC_ARROW_POINT
|
||||
|
||||
::basegfx::B2DPolyPolygon aArrowPolyPoly( aArrowPoly );
|
||||
tools::Long nWidth = static_cast< tools::Long >( 125 * fArrowWidth );
|
||||
if( bLineStart )
|
||||
{
|
||||
xSdrObj->SetMergedItem( XLineStartItem( OUString(), aArrowPolyPoly ) );
|
||||
xSdrObj->SetMergedItem( XLineStartItem( OUString(), basegfx::B2DPolyPolygon(aArrowPoly) ) );
|
||||
xSdrObj->SetMergedItem( XLineStartWidthItem( nWidth ) );
|
||||
xSdrObj->SetMergedItem( XLineStartCenterItem( false ) );
|
||||
}
|
||||
if( bLineEnd )
|
||||
{
|
||||
xSdrObj->SetMergedItem( XLineEndItem( OUString(), aArrowPolyPoly ) );
|
||||
xSdrObj->SetMergedItem( XLineEndItem( OUString(), basegfx::B2DPolyPolygon(aArrowPoly) ) );
|
||||
xSdrObj->SetMergedItem( XLineEndWidthItem( nWidth ) );
|
||||
xSdrObj->SetMergedItem( XLineEndCenterItem( false ) );
|
||||
}
|
||||
|
||||
@@ -827,7 +827,7 @@ void PresenterScreen::ProcessViewDescription (
|
||||
rValues[3] >>= aViewDescriptor.mbIsOpaque;
|
||||
if (aViewDescriptor.msAccessibleTitle.isEmpty())
|
||||
aViewDescriptor.msAccessibleTitle = aViewDescriptor.msTitle;
|
||||
maViewDescriptors[sViewURL] = aViewDescriptor;
|
||||
maViewDescriptors[sViewURL] = std::move(aViewDescriptor);
|
||||
}
|
||||
catch (const Exception&)
|
||||
{
|
||||
|
||||
@@ -319,7 +319,7 @@ void SvxCharacterMap::SetCharFont( const vcl::Font& rFont )
|
||||
return;
|
||||
|
||||
m_xFontLB->set_active_text(sFontFamilyName);
|
||||
aFont = aTmp;
|
||||
aFont = std::move(aTmp);
|
||||
FontSelectHdl(*m_xFontLB);
|
||||
if (m_xSubsetLB->get_count())
|
||||
m_xSubsetLB->set_active(0);
|
||||
|
||||
@@ -79,7 +79,7 @@ void ViewContactOfVirtObj::createViewIndependentPrimitive2DSequence(drawinglayer
|
||||
drawinglayer::primitive2d::Primitive2DReference xReference(
|
||||
new drawinglayer::primitive2d::TransformPrimitive2D(
|
||||
aObjectMatrix,
|
||||
drawinglayer::primitive2d::Primitive2DContainer(xSequenceVirtual)));
|
||||
drawinglayer::primitive2d::Primitive2DContainer(std::move(xSequenceVirtual))));
|
||||
|
||||
rVisitor.visit(xReference);
|
||||
}
|
||||
|
||||
@@ -1045,7 +1045,7 @@ namespace sdr::contact {
|
||||
return false;
|
||||
|
||||
m_pOutputDeviceForWindow = const_cast< OutputDevice * >( &_rDevice );
|
||||
m_aControl = aControl;
|
||||
m_aControl = std::move(aControl);
|
||||
m_xContainer.set(_rPageView.getControlContainer( _rDevice ), css::uno::UNO_QUERY);
|
||||
DBG_ASSERT( ( m_xContainer.is() // either have a XControlContainer
|
||||
|| ( ( !_rPageView.getControlContainer( _rDevice ).is() ) // or don't have any container,
|
||||
|
||||
@@ -2326,7 +2326,7 @@ void SwAccessibleMap::InvalidatePosOrSize( const SwFrame *pFrame,
|
||||
{
|
||||
SwAccessibleEvent_Impl aEvent(
|
||||
SwAccessibleEvent_Impl::CHILD_POS_CHANGED,
|
||||
xParentAccImpl.get(), aFrameOrObj, rOldBox );
|
||||
xParentAccImpl.get(), std::move(aFrameOrObj), rOldBox );
|
||||
AppendEvent( aEvent );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -466,7 +466,7 @@ void SwBaseShell::ExecClpbrd(SfxRequest &rReq)
|
||||
|
||||
|
||||
pDlg->StartExecuteAsync(
|
||||
[aDataHelper, pDlg, &rSh, this](sal_Int32 nResult)
|
||||
[aDataHelper=std::move(aDataHelper), pDlg, &rSh, this](sal_Int32 nResult)
|
||||
{
|
||||
if (nResult == RET_OK)
|
||||
{
|
||||
|
||||
@@ -89,7 +89,7 @@ void OOXMLDocumentImpl::resolveFastSubStream(Stream & rStreamHandler,
|
||||
return;
|
||||
}
|
||||
OOXMLStream::Pointer_t savedStream = mpStream;
|
||||
mpStream = pStream;
|
||||
mpStream = std::move(pStream);
|
||||
|
||||
uno::Reference<xml::sax::XFastParser> xParser(mpStream->getFastParser());
|
||||
|
||||
|
||||
@@ -213,7 +213,7 @@ void VCLXGraphics::intersectClipRegion( const uno::Reference< awt::XRegion >& rx
|
||||
{
|
||||
vcl::Region aRegion( VCLUnoHelper::GetRegion( rxRegion ) );
|
||||
if ( !mpClipRegion )
|
||||
mpClipRegion.reset( new vcl::Region( aRegion ) );
|
||||
mpClipRegion.reset( new vcl::Region(std::move(aRegion)) );
|
||||
else
|
||||
mpClipRegion->Intersect( aRegion );
|
||||
}
|
||||
|
||||
@@ -1352,7 +1352,7 @@ void Polygon::ImplReduceEdges( tools::Polygon& rPoly, const double& rArea, sal_u
|
||||
if( bChangeInThisRun && nNewPos )
|
||||
{
|
||||
aNewPoly.SetSize( nNewPos );
|
||||
rPoly = aNewPoly;
|
||||
rPoly = std::move(aNewPoly);
|
||||
nNumNoChange = 0;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -495,7 +495,7 @@ namespace cmis
|
||||
// FIXME Improve performances by adding getBaseTypeId( ) method to libcmis
|
||||
if ( type->getBaseType( )->getId( ) == typeId )
|
||||
{
|
||||
m_pObjectType = type;
|
||||
m_pObjectType = std::move(type);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -171,7 +171,7 @@ namespace cmis
|
||||
|
||||
std::unique_ptr<libcmis::Session> session(libcmis::SessionFactory::createSession(
|
||||
OUSTR_TO_STDSTR( m_aURL.getBindingUrl( ) ),
|
||||
rUsername, rPassword, "", false, oauth2Data ));
|
||||
rUsername, rPassword, "", false, std::move(oauth2Data) ));
|
||||
if (!session)
|
||||
ucbhelper::cancelCommandExecution(
|
||||
ucb::IOErrorCode_INVALID_DEVICE,
|
||||
|
||||
@@ -186,7 +186,7 @@ void DAVResourceAccess::OPTIONS(
|
||||
rOptions,
|
||||
DAVRequestEnvironment(
|
||||
new DAVAuthListener_Impl( xEnv, m_aURL ),
|
||||
aHeaders ) );
|
||||
std::move(aHeaders) ) );
|
||||
}
|
||||
catch (DAVException const& e)
|
||||
{
|
||||
@@ -303,7 +303,7 @@ void DAVResourceAccess::PROPPATCH(
|
||||
rValues,
|
||||
DAVRequestEnvironment(
|
||||
new DAVAuthListener_Impl( xEnv, m_aURL ),
|
||||
aHeaders ) );
|
||||
std::move(aHeaders) ) );
|
||||
}
|
||||
catch (DAVException const& e)
|
||||
{
|
||||
@@ -342,7 +342,7 @@ void DAVResourceAccess::HEAD(
|
||||
rResource,
|
||||
DAVRequestEnvironment(
|
||||
new DAVAuthListener_Impl( xEnv, m_aURL ),
|
||||
aHeaders ) );
|
||||
std::move(aHeaders) ) );
|
||||
}
|
||||
catch (DAVException const& e)
|
||||
{
|
||||
@@ -418,7 +418,7 @@ void DAVResourceAccess::GET(
|
||||
rStream,
|
||||
DAVRequestEnvironment(
|
||||
new DAVAuthListener_Impl( xEnv, m_aURL ),
|
||||
aHeaders ) );
|
||||
std::move(aHeaders) ) );
|
||||
}
|
||||
catch (DAVException const& e)
|
||||
{
|
||||
@@ -459,7 +459,7 @@ uno::Reference< io::XInputStream > DAVResourceAccess::GET(
|
||||
DAVRequestEnvironment(
|
||||
new DAVAuthListener_Impl(
|
||||
xEnv, m_aURL ),
|
||||
aHeaders ) );
|
||||
std::move(aHeaders) ) );
|
||||
}
|
||||
catch (DAVException const& e)
|
||||
{
|
||||
@@ -543,7 +543,7 @@ void DAVResourceAccess::GET(
|
||||
rResource,
|
||||
DAVRequestEnvironment(
|
||||
new DAVAuthListener_Impl( xEnv, m_aURL ),
|
||||
aHeaders ) );
|
||||
std::move(aHeaders) ) );
|
||||
}
|
||||
catch (DAVException const& e)
|
||||
{
|
||||
@@ -684,7 +684,7 @@ uno::Reference< io::XInputStream > DAVResourceAccess::POST(
|
||||
DAVRequestEnvironment(
|
||||
new DAVAuthListener_Impl(
|
||||
xEnv, m_aURL ),
|
||||
aHeaders ) );
|
||||
std::move(aHeaders) ) );
|
||||
}
|
||||
catch (DAVException const& e)
|
||||
{
|
||||
@@ -787,7 +787,7 @@ void DAVResourceAccess::MKCOL(
|
||||
m_xSession->MKCOL( getRequestURI(),
|
||||
DAVRequestEnvironment(
|
||||
new DAVAuthListener_Impl( xEnv, m_aURL ),
|
||||
aHeaders ) );
|
||||
std::move(aHeaders) ) );
|
||||
}
|
||||
catch (DAVException const& e)
|
||||
{
|
||||
@@ -826,7 +826,7 @@ void DAVResourceAccess::COPY(
|
||||
rDestinationURI,
|
||||
DAVRequestEnvironment(
|
||||
new DAVAuthListener_Impl( xEnv, m_aURL ),
|
||||
aHeaders ),
|
||||
std::move(aHeaders) ),
|
||||
bOverwrite );
|
||||
}
|
||||
catch (DAVException const& e)
|
||||
@@ -902,7 +902,7 @@ void DAVResourceAccess::DESTROY(
|
||||
m_xSession->DESTROY( getRequestURI(),
|
||||
DAVRequestEnvironment(
|
||||
new DAVAuthListener_Impl( xEnv, m_aURL ),
|
||||
aHeaders ) );
|
||||
std::move(aHeaders) ) );
|
||||
}
|
||||
catch (DAVException const& e)
|
||||
{
|
||||
@@ -940,7 +940,7 @@ void DAVResourceAccess::LOCK(
|
||||
inLock,
|
||||
DAVRequestEnvironment(
|
||||
new DAVAuthListener_Impl( xEnv, m_aURL ),
|
||||
aHeaders ) );
|
||||
std::move(aHeaders) ) );
|
||||
}
|
||||
catch (DAVException const& e)
|
||||
{
|
||||
@@ -974,7 +974,7 @@ void DAVResourceAccess::UNLOCK(
|
||||
m_xSession->UNLOCK( getRequestURI(),
|
||||
DAVRequestEnvironment(
|
||||
new DAVAuthListener_Impl( xEnv, m_aURL ),
|
||||
aHeaders ) );
|
||||
std::move(aHeaders) ) );
|
||||
}
|
||||
catch (DAVException const& e)
|
||||
{
|
||||
|
||||
@@ -620,12 +620,12 @@ bool BitmapEx::Create( const css::uno::Reference< css::rendering::XBitmapCanvas
|
||||
pSalMask = ImplGetSVData()->mpDefInst->CreateSalBitmap();
|
||||
if ( pSalMask->Create( xBitmapCanvas, aLocalSize, true ) )
|
||||
{
|
||||
*this = BitmapEx(Bitmap(pSalBmp), Bitmap(pSalMask) );
|
||||
*this = BitmapEx(Bitmap(std::move(pSalBmp)), Bitmap(std::move(pSalMask)) );
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
*this = BitmapEx(Bitmap(pSalBmp));
|
||||
*this = BitmapEx(Bitmap(std::move(pSalBmp)));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -222,7 +222,7 @@ BitmapEx BitmapInterpolateScaleFilter::execute(BitmapEx const& rBitmapEx) const
|
||||
if (bRet)
|
||||
{
|
||||
aOriginal.AdaptBitCount(aNewBmp);
|
||||
aBitmap = aNewBmp;
|
||||
aBitmap = std::move(aNewBmp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ BitmapEx BitmapMonochromeFilter::execute(BitmapEx const& aBitmapEx) const
|
||||
const MapMode aMap(aBitmap.GetPrefMapMode());
|
||||
const Size aSize(aBitmap.GetPrefSize());
|
||||
|
||||
aBitmap = aNewBmp;
|
||||
aBitmap = std::move(aNewBmp);
|
||||
|
||||
aBitmap.SetPrefMapMode(aMap);
|
||||
aBitmap.SetPrefSize(aSize);
|
||||
|
||||
@@ -87,7 +87,7 @@ BitmapEx BitmapSepiaFilter::execute(BitmapEx const& rBitmapEx) const
|
||||
const MapMode aMap(aBitmap.GetPrefMapMode());
|
||||
const Size aPrefSize(aBitmap.GetPrefSize());
|
||||
|
||||
aBitmap = aNewBmp;
|
||||
aBitmap = std::move(aNewBmp);
|
||||
|
||||
aBitmap.SetPrefMapMode(aMap);
|
||||
aBitmap.SetPrefSize(aPrefSize);
|
||||
|
||||
@@ -440,7 +440,7 @@ bool Bitmap::Rotate(Degree10 nAngle10, const Color& rFillColor)
|
||||
pWriteAcc.reset();
|
||||
}
|
||||
|
||||
aRotatedBmp = aNewBmp;
|
||||
aRotatedBmp = std::move(aNewBmp);
|
||||
}
|
||||
|
||||
pReadAcc.reset();
|
||||
@@ -967,7 +967,7 @@ bool Bitmap::Replace(const AlphaMask& rAlpha, const Color& rMergeColor)
|
||||
const MapMode aMap(maPrefMapMode);
|
||||
const Size aSize(maPrefSize);
|
||||
|
||||
*this = aNewBmp;
|
||||
*this = std::move(aNewBmp);
|
||||
|
||||
maPrefMapMode = aMap;
|
||||
maPrefSize = aSize;
|
||||
|
||||
@@ -157,7 +157,7 @@ void GraphicNativeTransform::rotateJPEG(Degree10 aRotation)
|
||||
Graphic aGraphic;
|
||||
GraphicFilter& rFilter = GraphicFilter::GetGraphicFilter();
|
||||
rFilter.ImportGraphic(aGraphic, u"import", aTargetStream);
|
||||
mrGraphic = aGraphic;
|
||||
mrGraphic = std::move(aGraphic);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -936,7 +936,7 @@ ErrCode GraphicFilter::readPNG(SvStream & rStream, Graphic & rGraphic, GfxLinkTy
|
||||
aPNGReader.read(aGraphic);
|
||||
if (!aGraphic.GetBitmapEx().IsEmpty())
|
||||
{
|
||||
rGraphic = aGraphic;
|
||||
rGraphic = std::move(aGraphic);
|
||||
rLinkType = GfxLinkType::NativePng;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -1506,7 +1506,7 @@ css::uno::Sequence< css::beans::PropertyValue > PrinterController::getJobPropert
|
||||
css::beans::PropertyValue aVal;
|
||||
aVal.Name = "IsFirstPage";
|
||||
aVal.Value <<= mpImplData->mbFirstPage;
|
||||
pResult[nCur++] = aVal;
|
||||
pResult[nCur++] = std::move(aVal);
|
||||
}
|
||||
// append IsLastPage
|
||||
if( aMergeSet.find( u"IsLastPage"_ustr ) == aMergeSet.end() )
|
||||
@@ -1514,7 +1514,7 @@ css::uno::Sequence< css::beans::PropertyValue > PrinterController::getJobPropert
|
||||
css::beans::PropertyValue aVal;
|
||||
aVal.Name = "IsLastPage";
|
||||
aVal.Value <<= mpImplData->mbLastPage;
|
||||
pResult[nCur++] = aVal;
|
||||
pResult[nCur++] = std::move(aVal);
|
||||
}
|
||||
// append IsPrinter
|
||||
if( aMergeSet.find( u"IsPrinter"_ustr ) == aMergeSet.end() )
|
||||
@@ -1522,7 +1522,7 @@ css::uno::Sequence< css::beans::PropertyValue > PrinterController::getJobPropert
|
||||
css::beans::PropertyValue aVal;
|
||||
aVal.Name = "IsPrinter";
|
||||
aVal.Value <<= true;
|
||||
pResult[nCur++] = aVal;
|
||||
pResult[nCur++] = std::move(aVal);
|
||||
}
|
||||
aResult.realloc( nCur );
|
||||
return aResult;
|
||||
|
||||
@@ -857,7 +857,7 @@ Bitmap OutputDevice::BlendBitmapWithAlpha(
|
||||
}
|
||||
pB.reset();
|
||||
pW.reset();
|
||||
res = aDither;
|
||||
res = std::move(aDither);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -1369,7 +1369,7 @@ bool SelectionManager::getPasteDataTypes( Atom selection, Sequence< DataFlavor >
|
||||
for( i = 0; i < nNewFlavors-1; i++ )
|
||||
aNativeTemp[ i + 1 ] = aNativeTypes[ i ];
|
||||
aNativeTemp[0] = None;
|
||||
aNativeTypes = aNativeTemp;
|
||||
aNativeTypes = std::move(aNativeTemp);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4455,11 +4455,11 @@ gboolean GtkSalFrame::signalKey(GtkWidget* pWidget, GdkEventKey* pEvent, gpointe
|
||||
VclPtr<vcl::Window> xVclWindow = pThis->GetWindow();
|
||||
ImplFrameData* pFrameData = xVclWindow->ImplGetWindowImpl()->mpFrameData;
|
||||
if (pFrameData->mpFocusWin == xTopLevelInterimWindow)
|
||||
pFrameData->mpFocusWin = xOrigFrameFocusWin;
|
||||
pFrameData->mpFocusWin = std::move(xOrigFrameFocusWin);
|
||||
|
||||
ImplSVData* pSVData = ImplGetSVData();
|
||||
if (pSVData->mpWinData->mpFocusWin == xTopLevelInterimWindow)
|
||||
pSVData->mpWinData->mpFocusWin = xOrigFocusWin;
|
||||
pSVData->mpWinData->mpFocusWin = std::move(xOrigFocusWin);
|
||||
|
||||
if (bRestoreDisallowCycleFocusOut)
|
||||
{
|
||||
|
||||
@@ -1534,7 +1534,7 @@ void VclGtkClipboard::setContents(
|
||||
aEntry.info = 0;
|
||||
aGtkTargets.push_back(aEntry);
|
||||
#endif
|
||||
m_aGtkTargets = aGtkTargets;
|
||||
m_aGtkTargets = std::move(aGtkTargets);
|
||||
|
||||
if (!m_pSetClipboardEvent)
|
||||
m_pSetClipboardEvent = Application::PostUserEvent(LINK(this, VclGtkClipboard, AsyncSetGtkClipboard));
|
||||
|
||||
@@ -195,7 +195,7 @@ KeynoteImportFilter::detect(css::uno::Sequence<css::beans::PropertyValue>& Descr
|
||||
beans::NamedValue aValue;
|
||||
aValue.Name = "IsPackage";
|
||||
aValue.Value <<= true;
|
||||
lComponentDataNV.getArray()[nCDSize] = aValue;
|
||||
lComponentDataNV.getArray()[nCDSize] = std::move(aValue);
|
||||
pDescriptor[nComponentDataLocation].Value <<= lComponentDataNV;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -912,7 +912,7 @@ lcl_TableData lcl_getDataForLocalTable(
|
||||
aResult.aDataInRows[nIdx][nSeqIdx] = aNumbers[nIdx];
|
||||
}
|
||||
else
|
||||
aResult.aDataInRows[nSeqIdx] = aNumbers;
|
||||
aResult.aDataInRows[nSeqIdx] = std::move(aNumbers);
|
||||
|
||||
if( rDataSequence.second.is())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user