diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-23 09:08:24 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-23 10:43:50 +0100 |
commit | d010dd58e8afd7e135c7479dcabd6986eadb664f (patch) | |
tree | 7cace5b4bead0d676f0bc569e32f6902ecdf7f94 /vcl/inc | |
parent | 8f7c35072a6bbb33f6582c8c9a37a275c8d3cb14 (diff) |
loplugin:constparams in vcl
Change-Id: Icf1a952fbe190fd6c4efd89364136aa2b48050e3
Reviewed-on: https://gerrit.libreoffice.org/66767
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/graphic/Manager.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/headless/svpgdi.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/headless/svpinst.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/impfontmetricdata.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/implimagetree.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/listbox.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/sallayout.hxx | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/vcl/inc/graphic/Manager.hxx b/vcl/inc/graphic/Manager.hxx index 88d57229f9e2..f6f24b47db6f 100644 --- a/vcl/inc/graphic/Manager.hxx +++ b/vcl/inc/graphic/Manager.hxx @@ -43,7 +43,7 @@ private: Manager(); - void registerGraphic(std::shared_ptr<ImpGraphic>& rImpGraphic, OUString const& rsContext); + void registerGraphic(const std::shared_ptr<ImpGraphic>& rImpGraphic, OUString const& rsContext); DECL_LINK(SwapOutTimerHandler, Timer*, void); diff --git a/vcl/inc/headless/svpgdi.hxx b/vcl/inc/headless/svpgdi.hxx index 9ba284300a37..e62c508d0863 100644 --- a/vcl/inc/headless/svpgdi.hxx +++ b/vcl/inc/headless/svpgdi.hxx @@ -242,7 +242,7 @@ public: virtual void drawBitmap( const SalTwoRect& rPosAry, const SalBitmap& rSalBitmap ) override; void drawBitmap( const SalTwoRect& rPosAry, - BitmapBuffer* pBuffer, + const BitmapBuffer* pBuffer, cairo_operator_t eOp ); virtual void drawBitmap( const SalTwoRect& rPosAry, const SalBitmap& rSalBitmap, diff --git a/vcl/inc/headless/svpinst.hxx b/vcl/inc/headless/svpinst.hxx index b331c5cbcbad..3dbdf10f1e57 100644 --- a/vcl/inc/headless/svpinst.hxx +++ b/vcl/inc/headless/svpinst.hxx @@ -194,7 +194,7 @@ inline void SvpSalInstance::deregisterFrame( SalFrame* pFrame ) eraseFrame( pFrame ); } -VCL_DLLPUBLIC cairo_surface_t* get_underlying_cairo_surface(VirtualDevice& rDevice); +VCL_DLLPUBLIC cairo_surface_t* get_underlying_cairo_surface(const VirtualDevice& rDevice); #endif // INCLUDED_VCL_INC_HEADLESS_SVPINST_HXX diff --git a/vcl/inc/impfontmetricdata.hxx b/vcl/inc/impfontmetricdata.hxx index 1c9b14a5098f..73beb59722db 100644 --- a/vcl/inc/impfontmetricdata.hxx +++ b/vcl/inc/impfontmetricdata.hxx @@ -97,7 +97,7 @@ public: int nUPEM); private: - bool ShouldUseWinMetrics(vcl::TTGlobalFontInfo& rInfo); + bool ShouldUseWinMetrics(const vcl::TTGlobalFontInfo& rInfo); // font instance attributes from the font request long const mnHeight; // Font size diff --git a/vcl/inc/implimagetree.hxx b/vcl/inc/implimagetree.hxx index 1e81aba8fac8..4c23f3a2637f 100644 --- a/vcl/inc/implimagetree.hxx +++ b/vcl/inc/implimagetree.hxx @@ -133,7 +133,7 @@ private: void createStyle(); - IconCache &getIconCache(ImageRequestParameters& rParameters); + IconCache &getIconCache(const ImageRequestParameters& rParameters); bool iconCacheLookup(ImageRequestParameters& rParameters); diff --git a/vcl/inc/listbox.hxx b/vcl/inc/listbox.hxx index 8591d9696764..a13714bf1910 100644 --- a/vcl/inc/listbox.hxx +++ b/vcl/inc/listbox.hxx @@ -74,7 +74,7 @@ struct ImplEntryType } /// Computes maStr's text layout (glyphs), cached in maStrGlyphs. - SalLayoutGlyphs* GetTextGlyphs(OutputDevice* pOutputDevice); + SalLayoutGlyphs* GetTextGlyphs(const OutputDevice* pOutputDevice); }; class ImplEntryList diff --git a/vcl/inc/sallayout.hxx b/vcl/inc/sallayout.hxx index cd2b02f105aa..7e94242b4808 100644 --- a/vcl/inc/sallayout.hxx +++ b/vcl/inc/sallayout.hxx @@ -197,7 +197,7 @@ private: GenericSalLayout( const GenericSalLayout& ) = delete; GenericSalLayout& operator=( const GenericSalLayout& ) = delete; - void ApplyDXArray(ImplLayoutArgs&); + void ApplyDXArray(const ImplLayoutArgs&); void Justify(DeviceCoordinate nNewWidth); void ApplyAsianKerning(const OUString& rStr); |