diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/jsdialog/jsdialogbuilder.hxx | 2 | ||||
-rw-r--r-- | vcl/jsdialog/jsdialogbuilder.cxx | 2 | ||||
-rw-r--r-- | vcl/source/bitmap/BitmapEmbossGreyFilter.cxx | 2 | ||||
-rw-r--r-- | vcl/source/filter/GraphicNativeTransform.cxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/region.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/printer/ppdparser.cxx | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/vcl/inc/jsdialog/jsdialogbuilder.hxx b/vcl/inc/jsdialog/jsdialogbuilder.hxx index 28435d6536f1..ac529cef12b0 100644 --- a/vcl/inc/jsdialog/jsdialogbuilder.hxx +++ b/vcl/inc/jsdialog/jsdialogbuilder.hxx @@ -326,7 +326,7 @@ public: static void RemoveWindowWidget(const OUString& nWindowId); // we need to remember original popup window to close it properly (its handled by vcl) - static void RememberPopup(const OUString& nWindowId, VclPtr<vcl::Window> pWidget); + static void RememberPopup(const OUString& nWindowId, const VclPtr<vcl::Window>& pWidget); static void ForgetPopup(const OUString& nWindowId); static vcl::Window* FindPopup(const OUString& nWindowId); diff --git a/vcl/jsdialog/jsdialogbuilder.cxx b/vcl/jsdialog/jsdialogbuilder.cxx index 8cc2d0f38c86..7c90d59e8c48 100644 --- a/vcl/jsdialog/jsdialogbuilder.cxx +++ b/vcl/jsdialog/jsdialogbuilder.cxx @@ -785,7 +785,7 @@ void JSInstanceBuilder::RemoveWindowWidget(const OUString& nWindowId) } } -void JSInstanceBuilder::RememberPopup(const OUString& nWindowId, VclPtr<vcl::Window> pWidget) +void JSInstanceBuilder::RememberPopup(const OUString& nWindowId, const VclPtr<vcl::Window>& pWidget) { GetLOKPopupsMap()[nWindowId] = pWidget; } diff --git a/vcl/source/bitmap/BitmapEmbossGreyFilter.cxx b/vcl/source/bitmap/BitmapEmbossGreyFilter.cxx index 37c60e1b341a..3e7694968d1b 100644 --- a/vcl/source/bitmap/BitmapEmbossGreyFilter.cxx +++ b/vcl/source/bitmap/BitmapEmbossGreyFilter.cxx @@ -125,7 +125,7 @@ BitmapEx BitmapEmbossGreyFilter::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); diff --git a/vcl/source/filter/GraphicNativeTransform.cxx b/vcl/source/filter/GraphicNativeTransform.cxx index 28f2a987e452..88078b2499cb 100644 --- a/vcl/source/filter/GraphicNativeTransform.cxx +++ b/vcl/source/filter/GraphicNativeTransform.cxx @@ -110,7 +110,7 @@ bool GraphicNativeTransform::rotateGeneric(Degree10 aRotation, std::u16string_vi Graphic aGraphic; rFilter.ImportGraphic(aGraphic, u"import", aStream); - mrGraphic = aGraphic; + mrGraphic = std::move(aGraphic); return true; } diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index bf6c2c94e404..54deb6230dd1 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -10515,7 +10515,7 @@ void PDFWriterImpl::intersectClipRegion( const basegfx::B2DPolyPolygon& rRegion } else { - m_aGraphicsStack.front().m_aClipRegion = aRegion; + m_aGraphicsStack.front().m_aClipRegion = std::move(aRegion); m_aGraphicsStack.front().m_bClipRegion = true; } } diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx index efe1d989fc7c..07ca0e54d527 100644 --- a/vcl/source/gdi/region.cxx +++ b/vcl/source/gdi/region.cxx @@ -1564,7 +1564,7 @@ SvStream& ReadRegion(SvStream& rIStrm, vcl::Region& rRegion) { std::shared_ptr<RegionBand> xNewRegionBand(std::make_shared<RegionBand>()); bool bSuccess = xNewRegionBand->load(rIStrm); - rRegion.mpRegionBand = xNewRegionBand; + rRegion.mpRegionBand = std::move(xNewRegionBand); bool bHasPolyPolygon(false); if (aCompat.GetVersion() >= 2) diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx index f885bc04aada..40ba184603da 100644 --- a/vcl/unx/generic/printer/ppdparser.cxx +++ b/vcl/unx/generic/printer/ppdparser.cxx @@ -1590,7 +1590,7 @@ PPDValue* PPDKey::insertValue(const OUString& rOption, PPDValueType eType, bool aValue.m_bCustomOption = bCustomOption; aValue.m_bCustomOptionSetViaApp = false; aValue.m_eType = eType; - m_aValues[ rOption ] = aValue; + m_aValues[rOption] = std::move(aValue); PPDValue* pValue = &m_aValues[rOption]; m_aOrderedValues.push_back( pValue ); return pValue; |