diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-04-10 00:33:28 +1000 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-04-10 01:11:38 +1000 |
commit | 480157e58fe4fe6694c0459d3f9f009d1c0902bf (patch) | |
tree | 292d450ad8dbc67b439e92f410595bc67bc6fca0 /include | |
parent | coverity#708111 Uninitialized scalar field (diff) | |
download | core-480157e58fe4fe6694c0459d3f9f009d1c0902bf.tar.gz core-480157e58fe4fe6694c0459d3f9f009d1c0902bf.zip |
Remove unnecessary bound-box parameter from clipping functions
The bounding rectangle actually comes from the polygon. Therefore, it's
not needed. Removed from the following functions in OutputDevice, et al
+ ClipAndDrawGradient
+ XORClipAndDrawGradient
+ ClipAndDrawGradientMetafile
Change-Id: I4a87edcddb8895871982f0448854e1c0854124bc
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/outdev.hxx | 6 | ||||
-rw-r--r-- | include/vcl/print.hxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index 94805c709168..3c10cbd4fc9e 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -842,10 +842,10 @@ protected: void DrawInvisiblePolygon( const PolyPolygon& rPolyPoly ); virtual void ClipAndDrawGradientToBounds( Gradient &rGradient, const PolyPolygon &rPolyPoly ); - void ClipAndDrawGradient( Gradient &rGradient, const PolyPolygon &rPolyPoly, const Rectangle &rBoundRect ); - void XORClipAndDrawGradient( Gradient &rGradient, const PolyPolygon &rPolyPoly, const Rectangle &rBoundRect ); + void ClipAndDrawGradient( Gradient &rGradient, const PolyPolygon &rPolyPoly ); + void XORClipAndDrawGradient( Gradient &rGradient, const PolyPolygon &rPolyPoly ); - virtual void ClipAndDrawGradientMetafile ( const Gradient &rGradient, const PolyPolygon &rPolyPoly, const Rectangle &rBoundRect ); + virtual void ClipAndDrawGradientMetafile ( const Gradient &rGradient, const PolyPolygon &rPolyPoly ); private: typedef void ( OutputDevice::* FontUpdateHandler_t )( bool ); diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx index 723d734dd18e..1f9b6fd3d14b 100644 --- a/include/vcl/print.hxx +++ b/include/vcl/print.hxx @@ -275,7 +275,7 @@ public: protected: long ImplGetGradientStepCount( long nMinRect ) SAL_OVERRIDE; virtual void ClipAndDrawGradientToBounds( Gradient &rGradient, const PolyPolygon &rPolyPoly ) SAL_OVERRIDE; - virtual void ClipAndDrawGradientMetafile ( const Gradient &rGradient, const PolyPolygon &rPolyPoly, const Rectangle &rBoundRect ) SAL_OVERRIDE; + virtual void ClipAndDrawGradientMetafile ( const Gradient &rGradient, const PolyPolygon &rPolyPoly ) SAL_OVERRIDE; virtual bool UsePolyPolygonForComplexGradient() SAL_OVERRIDE; void ScaleBitmap ( Bitmap&, SalTwoRect& ) SAL_OVERRIDE { }; |