diff options
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/vcl/canvasbitmaphelper.cxx | 2 | ||||
-rw-r--r-- | canvas/source/vcl/canvashelper.cxx | 10 | ||||
-rw-r--r-- | canvas/source/vcl/canvashelper_texturefill.cxx | 2 | ||||
-rw-r--r-- | canvas/source/vcl/impltools.hxx | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/canvas/source/vcl/canvasbitmaphelper.cxx b/canvas/source/vcl/canvasbitmaphelper.cxx index 43fed2754430..336c12b83047 100644 --- a/canvas/source/vcl/canvasbitmaphelper.cxx +++ b/canvas/source/vcl/canvasbitmaphelper.cxx @@ -155,7 +155,7 @@ namespace vclcanvas rendering::IntegerBitmapLayout CanvasBitmapHelper::getMemoryLayout() const { - if( !mpOutDevProvider.get() ) + if( !mpOutDevProvider ) return rendering::IntegerBitmapLayout(); // we're disposed rendering::IntegerBitmapLayout aBitmapLayout( ::canvas::tools::getStdMemoryLayout(getSize()) ); diff --git a/canvas/source/vcl/canvashelper.cxx b/canvas/source/vcl/canvashelper.cxx index 17930a1a758d..07dc45574e64 100644 --- a/canvas/source/vcl/canvashelper.cxx +++ b/canvas/source/vcl/canvashelper.cxx @@ -867,7 +867,7 @@ namespace vclcanvas geometry::IntegerSize2D CanvasHelper::getSize() { - if( !mpOutDevProvider.get() ) + if( !mpOutDevProvider ) return geometry::IntegerSize2D(); // we're disposed return vcl::unotools::integerSize2DFromSize( mpOutDevProvider->getOutDev().GetOutputSizePixel() ); @@ -876,7 +876,7 @@ namespace vclcanvas uno::Reference< rendering::XBitmap > CanvasHelper::getScaledBitmap( const geometry::RealSize2D& newSize, bool beFast ) { - if( !mpOutDevProvider.get() || !mpDevice ) + if( !mpOutDevProvider || !mpDevice ) return uno::Reference< rendering::XBitmap >(); // we're disposed OutputDevice& rOutDev( mpOutDevProvider->getOutDev() ); @@ -901,7 +901,7 @@ namespace vclcanvas uno::Sequence< sal_Int8 > CanvasHelper::getData( rendering::IntegerBitmapLayout& rLayout, const geometry::IntegerRectangle2D& rect ) { - if( !mpOutDevProvider.get() ) + if( !mpOutDevProvider ) return uno::Sequence< sal_Int8 >(); // we're disposed rLayout = getMemoryLayout(); @@ -951,7 +951,7 @@ namespace vclcanvas uno::Sequence< sal_Int8 > CanvasHelper::getPixel( rendering::IntegerBitmapLayout& rLayout, const geometry::IntegerPoint2D& pos ) { - if( !mpOutDevProvider.get() ) + if( !mpOutDevProvider ) return uno::Sequence< sal_Int8 >(); // we're disposed rLayout = getMemoryLayout(); @@ -980,7 +980,7 @@ namespace vclcanvas rendering::IntegerBitmapLayout CanvasHelper::getMemoryLayout() { - if( !mpOutDevProvider.get() ) + if( !mpOutDevProvider ) return rendering::IntegerBitmapLayout(); // we're disposed rendering::IntegerBitmapLayout aBitmapLayout( ::canvas::tools::getStdMemoryLayout(getSize()) ); diff --git a/canvas/source/vcl/canvashelper_texturefill.cxx b/canvas/source/vcl/canvashelper_texturefill.cxx index 646cef28aac6..9cb8dd8abd99 100644 --- a/canvas/source/vcl/canvashelper_texturefill.cxx +++ b/canvas/source/vcl/canvashelper_texturefill.cxx @@ -608,7 +608,7 @@ namespace vclcanvas // TODO(E1): Return value // TODO(F1): FillRule gradientFill( mpOutDevProvider->getOutDev(), - mp2ndOutDevProvider.get() ? &mp2ndOutDevProvider->getOutDev() : nullptr, + mp2ndOutDevProvider ? &mp2ndOutDevProvider->getOutDev() : nullptr, rValues, aColors, aPolyPoly, diff --git a/canvas/source/vcl/impltools.hxx b/canvas/source/vcl/impltools.hxx index eb4918c68459..f20b052d5534 100644 --- a/canvas/source/vcl/impltools.hxx +++ b/canvas/source/vcl/impltools.hxx @@ -127,7 +127,7 @@ namespace vclcanvas } explicit OutDevStateKeeper( const OutDevProviderSharedPtr& rOutDev ) : - mpOutDev( rOutDev.get() ? &(rOutDev->getOutDev()) : nullptr ), + mpOutDev( rOutDev ? &(rOutDev->getOutDev()) : nullptr ), mbMappingWasEnabled( mpOutDev && mpOutDev->IsMapModeEnabled() ), mnAntiAliasing( mpOutDev ? mpOutDev->GetAntialiasing() : AntialiasingFlags::NONE ) { |