diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2014-03-22 16:33:07 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2014-03-23 00:38:04 +0200 |
commit | 4e642a3f6b07163a030720f2043b0dde1fdfd66d (patch) | |
tree | 6195aa90c7003621182e10ec33ee67470c4ded43 /vcl | |
parent | ac466bc94eaea5356dc764564810e787b0536121 (diff) |
No need for these (void)s
Change-Id: I946009c4ffacf51c7f144acf85060ccd4a31620a
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/outdev2.cxx | 27 | ||||
-rw-r--r-- | vcl/source/gdi/print.cxx | 47 |
2 files changed, 20 insertions, 54 deletions
diff --git a/vcl/source/gdi/outdev2.cxx b/vcl/source/gdi/outdev2.cxx index 5e68c71da2a2..d20cd787fe2b 100644 --- a/vcl/source/gdi/outdev2.cxx +++ b/vcl/source/gdi/outdev2.cxx @@ -328,14 +328,10 @@ void OutputDevice::DrawOutDev( const Point& rDestPt, const Size& rDestSize, } } -void OutputDevice::DrawOutDev( const Point& rDestPt, const Size& rDestSize, - const Point& rSrcPt, const Size& rSrcSize, - const Printer& /* rOutDev */ ) +void OutputDevice::DrawOutDev( const Point& /*rDestPt*/, const Size& /*rDestSize*/, + const Point& /*rSrcPt*/, const Size& /*rSrcSize*/, + const Printer& /*rOutDev*/ ) { - (void) rDestPt; - (void) rDestSize; - (void) rSrcPt; - (void) rSrcSize; // This should never occur! You can't call this function on a Printer instance DBG_ASSERT( false, "Don't use OutputDevice::DrawOutDev(...) with printer devices!" ); } @@ -379,10 +375,8 @@ void OutputDevice::CopyArea( const Point& rDestPt, mpAlphaVDev->CopyArea( rDestPt, rSrcPt, rSrcSize, nFlags ); } -void OutputDevice::CopyAreaFinal( SalTwoRect& aPosAry, sal_uInt32 nFlags ) +void OutputDevice::CopyAreaFinal( SalTwoRect& aPosAry, sal_uInt32 /*nFlags*/) { - (void) nFlags; - if ( aPosAry.mnSrcWidth && aPosAry.mnSrcHeight && aPosAry.mnDestWidth && aPosAry.mnDestHeight ) { aPosAry.mnDestWidth = aPosAry.mnSrcWidth; @@ -2276,18 +2270,11 @@ void OutputDevice::ImplPrintTransparent( const Bitmap& rBmp, const Bitmap& rMask } } -void OutputDevice::ImplPrintMask( const Bitmap& rMask, const Color& rMaskColor, - const Point& rDestPt, const Size& rDestSize, - const Point& rSrcPtPixel, const Size& rSrcSizePixel ) +void OutputDevice::ImplPrintMask( const Bitmap& /*rMask*/, const Color& /*rMaskColor*/, + const Point& /*rDestPt*/, const Size& /*rDestSize*/, + const Point& /*rSrcPtPixel*/, const Size& /*rSrcSizePixel*/ ) { // let's leave this for Printer - (void) rMask; - (void) rMaskColor; - (void) rDestPt; - (void) rDestSize; - (void) rSrcPtPixel; - (void) rSrcSizePixel; - return; } diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx index c5d1961eea16..25f20a7a14db 100644 --- a/vcl/source/gdi/print.cxx +++ b/vcl/source/gdi/print.cxx @@ -212,61 +212,40 @@ bool PrinterOptions::ReadFromConfig( bool i_bFile ) } bool Printer::DrawTransformBitmapExDirect( - const basegfx::B2DHomMatrix& aFullTransform, - const BitmapEx& rBitmapEx) + const basegfx::B2DHomMatrix& /*aFullTransform*/, + const BitmapEx& /*rBitmapEx*/) { // printers can't draw bitmaps directly - (void) aFullTransform; - (void) rBitmapEx; return false; } bool Printer::TransformReduceBitmapExTargetRange( - const basegfx::B2DHomMatrix& aFullTransform, - basegfx::B2DRange &aVisibleRange, - double &fMaximumArea) + const basegfx::B2DHomMatrix& /*aFullTransform*/, + basegfx::B2DRange& /*aVisibleRange*/, + double& /*fMaximumArea*/) { // deliberately do nothing - you can't reduce the // target range for a printer at all - (void) aFullTransform; - (void) aVisibleRange; - (void) fMaximumArea; return true; } -void Printer::DrawOutDev( const Point& rDestPt, const Size& rDestSize, - const Point& rSrcPt, const Size& rSrcSize ) +void Printer::DrawOutDev( const Point& /*rDestPt*/, const Size& /*rDestSize*/, + const Point& /*rSrcPt*/, const Size& /*rSrcSize*/ ) { - (void) rDestPt; - (void) rDestSize; - (void) rSrcPt; - (void) rSrcSize; - DBG_ASSERT( false, "Don't use OutputDevice::DrawOutDev(...) with printer devices!" ); } -void Printer::DrawOutDev( const Point& rDestPt, const Size& rDestSize, - const Point& rSrcPt, const Size& rSrcSize, - const OutputDevice& rOutDev ) +void Printer::DrawOutDev( const Point& /*rDestPt*/, const Size& /*rDestSize*/, + const Point& /*rSrcPt*/, const Size& /*rSrcSize*/, + const OutputDevice& /*rOutDev*/ ) { - (void) rDestPt; - (void) rDestSize; - (void) rSrcPt; - (void) rSrcSize; - (void) rOutDev; - DBG_ASSERT( false, "Don't use OutputDevice::DrawOutDev(...) with printer devices!" ); } -void Printer::CopyArea( const Point& rDestPt, - const Point& rSrcPt, const Size& rSrcSize, - sal_uInt16 nFlags ) +void Printer::CopyArea( const Point& /*rDestPt*/, + const Point& /*rSrcPt*/, const Size& /*rSrcSize*/, + sal_uInt16 /*nFlags*/ ) { - (void) rDestPt; - (void) rSrcPt; - (void) rSrcSize; - (void) nFlags; - DBG_ASSERT( false, "Don't use OutputDevice::CopyArea(...) with printer devices!" ); } |