diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/headless/svpgdi.cxx | 10 | ||||
-rw-r--r-- | vcl/inc/headless/svpgdi.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/listbox.hxx | 2 | ||||
-rw-r--r-- | vcl/source/control/imp_listbox.cxx | 2 | ||||
-rw-r--r-- | vcl/source/control/listbox.cxx | 2 | ||||
-rw-r--r-- | vcl/source/control/quickselectionengine.cxx | 2 | ||||
-rw-r--r-- | vcl/source/filter/wmf/emfwr.cxx | 4 | ||||
-rw-r--r-- | vcl/source/filter/wmf/emfwr.hxx | 4 |
8 files changed, 14 insertions, 14 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx index b6c33b709e24..b4dca52a49e0 100644 --- a/vcl/headless/svpgdi.cxx +++ b/vcl/headless/svpgdi.cxx @@ -879,18 +879,18 @@ bool SvpSalGraphics::drawPolyPolygon(const basegfx::B2DPolyPolygon& rPolyPoly, d return true; } -void SvpSalGraphics::applyColor(cairo_t *cr, const SalColor &rColor) +void SvpSalGraphics::applyColor(cairo_t *cr, SalColor aColor) { if (CAIRO_FORMAT_ARGB32 == cairo_image_surface_get_format(m_pSurface)) { - cairo_set_source_rgba(cr, SALCOLOR_RED(rColor)/255.0, - SALCOLOR_GREEN(rColor)/255.0, - SALCOLOR_BLUE(rColor)/255.0, + cairo_set_source_rgba(cr, SALCOLOR_RED(aColor)/255.0, + SALCOLOR_GREEN(aColor)/255.0, + SALCOLOR_BLUE(aColor)/255.0, 1.0); } else { - double fSet = rColor == COL_BLACK ? 0.0 : 1.0; + double fSet = aColor == COL_BLACK ? 0.0 : 1.0; cairo_set_source_rgba(cr, 1, 1, 1, fSet); cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE); } diff --git a/vcl/inc/headless/svpgdi.hxx b/vcl/inc/headless/svpgdi.hxx index 758057500ba2..7be69f97bab5 100644 --- a/vcl/inc/headless/svpgdi.hxx +++ b/vcl/inc/headless/svpgdi.hxx @@ -78,7 +78,7 @@ private: void invert(const basegfx::B2DPolygon &rPoly, SalInvert nFlags); void copySource(const SalTwoRect& rTR, cairo_surface_t* source); void setupPolyPolygon(cairo_t* cr, const basegfx::B2DPolyPolygon& rPolyPoly); - void applyColor(cairo_t *cr, const SalColor &rColor); + void applyColor(cairo_t *cr, SalColor rColor); void drawPolyPolygon(const basegfx::B2DPolyPolygon& rPolyPoly); protected: vcl::Region m_aClipRegion; diff --git a/vcl/inc/listbox.hxx b/vcl/inc/listbox.hxx index 3cd6944d6c75..df2f68c5ca73 100644 --- a/vcl/inc/listbox.hxx +++ b/vcl/inc/listbox.hxx @@ -352,7 +352,7 @@ public: bool GetEdgeBlending() const { return mbEdgeBlending; } void SetEdgeBlending(bool bNew) { mbEdgeBlending = bNew; } - void EnableQuickSelection( const bool& b ); + void EnableQuickSelection( bool b ); using Control::ImplInitSettings; virtual void ApplySettings(vcl::RenderContext& rRenderContext) override; diff --git a/vcl/source/control/imp_listbox.cxx b/vcl/source/control/imp_listbox.cxx index 2d3424f2cba7..d81e5b56ab5b 100644 --- a/vcl/source/control/imp_listbox.cxx +++ b/vcl/source/control/imp_listbox.cxx @@ -609,7 +609,7 @@ struct ImplEntryMetrics long nImgHeight; }; -void ImplListBoxWindow::EnableQuickSelection( const bool& b ) +void ImplListBoxWindow::EnableQuickSelection( bool b ) { maQuickSelectionEngine.SetEnabled( b ); } diff --git a/vcl/source/control/listbox.cxx b/vcl/source/control/listbox.cxx index 1cbcc4d9e8d7..f5d0dad283cd 100644 --- a/vcl/source/control/listbox.cxx +++ b/vcl/source/control/listbox.cxx @@ -37,7 +37,7 @@ #include <com/sun/star/datatransfer/dnd/XDropTarget.hpp> -void ListBox::EnableQuickSelection( const bool& b ) +void ListBox::EnableQuickSelection( bool b ) { mpImplLB->GetMainWindow()->EnableQuickSelection(b); } diff --git a/vcl/source/control/quickselectionengine.cxx b/vcl/source/control/quickselectionengine.cxx index fc7e7893c138..146b48e399ac 100644 --- a/vcl/source/control/quickselectionengine.cxx +++ b/vcl/source/control/quickselectionengine.cxx @@ -104,7 +104,7 @@ namespace vcl { } - void QuickSelectionEngine::SetEnabled( const bool& b ) + void QuickSelectionEngine::SetEnabled( bool b ) { bEnabled = b; } diff --git a/vcl/source/filter/wmf/emfwr.cxx b/vcl/source/filter/wmf/emfwr.cxx index 6accc01300d8..921d5fd003f0 100644 --- a/vcl/source/filter/wmf/emfwr.cxx +++ b/vcl/source/filter/wmf/emfwr.cxx @@ -252,7 +252,7 @@ void EMFWriter::ImplWritePlusEOF() ImplEndCommentRecord(); } -void EMFWriter::ImplWritePlusColor( const Color& rColor, const sal_uInt32& nTrans ) +void EMFWriter::ImplWritePlusColor( const Color& rColor, sal_uInt32 nTrans ) { sal_uInt32 nAlpha = ((100-nTrans)*0xFF)/100; sal_uInt32 nCol = rColor.GetBlue(); @@ -270,7 +270,7 @@ void EMFWriter::ImplWritePlusPoint( const Point& rPoint ) m_rStm.WriteUInt16( aPoint.X() ).WriteUInt16( aPoint.Y() ); } -void EMFWriter::ImplWritePlusFillPolygonRecord( const tools::Polygon& rPoly, const sal_uInt32& nTrans ) +void EMFWriter::ImplWritePlusFillPolygonRecord( const tools::Polygon& rPoly, sal_uInt32 nTrans ) { ImplBeginCommentRecord( WIN_EMR_COMMENT_EMFPLUS ); if( rPoly.GetSize() ) diff --git a/vcl/source/filter/wmf/emfwr.hxx b/vcl/source/filter/wmf/emfwr.hxx index a7aa6fb3aab5..79491fc7c0d9 100644 --- a/vcl/source/filter/wmf/emfwr.hxx +++ b/vcl/source/filter/wmf/emfwr.hxx @@ -83,8 +83,8 @@ private: void ImplWrite( const GDIMetaFile& rMtf ); void WriteEMFPlusHeader( const Size &rMtfSizePix, const Size &rMtfSizeLog ); void ImplWritePlusEOF(); - void ImplWritePlusFillPolygonRecord( const tools::Polygon& rPoly, const sal_uInt32& nTrans ); - void ImplWritePlusColor( const Color& rColor, const sal_uInt32& nTrans ); + void ImplWritePlusFillPolygonRecord( const tools::Polygon& rPoly, sal_uInt32 nTrans ); + void ImplWritePlusColor( const Color& rColor, sal_uInt32 nTrans ); void ImplWritePlusPoint( const Point& rPoint ); public: |