summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-06 11:17:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-06 12:57:25 +0200
commit22d94ce0abef7cdd5e344a28e1b1ee4caf6cd8f8 (patch)
tree0e54d0721723336daf26493f85e7be8f07431286 /vcl/inc
parentd34e969c888219bd3739fc4a8ef330c77f7e7adf (diff)
loplugin:const* make some params and methods const
Change-Id: If7fbb25037343e18081a8ee7064840d75e9a45a7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104010 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/impgraph.hxx4
-rw-r--r--vcl/inc/sft.hxx2
-rw-r--r--vcl/inc/skia/utils.hxx2
-rw-r--r--vcl/inc/svimpbox.hxx2
-rw-r--r--vcl/inc/test/outputdevice.hxx2
-rw-r--r--vcl/inc/unx/glyphcache.hxx2
-rw-r--r--vcl/inc/unx/saldisp.hxx2
7 files changed, 8 insertions, 8 deletions
diff --git a/vcl/inc/impgraph.hxx b/vcl/inc/impgraph.hxx
index 9a82caade324..aee0d1839b31 100644
--- a/vcl/inc/impgraph.hxx
+++ b/vcl/inc/impgraph.hxx
@@ -159,7 +159,7 @@ private:
const Size& rDestSize,
long nExtraData,
OutputDevice* pFirstFrameOutDev );
- void ImplStopAnimation( OutputDevice* pOutputDevice,
+ void ImplStopAnimation( const OutputDevice* pOutputDevice,
long nExtraData );
void ImplSetAnimationNotifyHdl( const Link<Animation*,void>& rLink );
@@ -206,7 +206,7 @@ public:
bool swapIn();
bool swapOut();
bool isSwappedOut() const { return mbSwapOut; }
- OUString getSwapFileURL();
+ OUString getSwapFileURL() const;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/sft.hxx b/vcl/inc/sft.hxx
index 8711364ed46f..6a844002711d 100644
--- a/vcl/inc/sft.hxx
+++ b/vcl/inc/sft.hxx
@@ -680,7 +680,7 @@ class TrueTypeFont;
* @return true, if table data could be decoded
* @ingroup sft
*/
- VCL_DLLPUBLIC bool GetTTGlobalFontHeadInfo(AbstractTrueTypeFont *ttf, int& xMin, int& yMin, int& xMax, int& yMax, sal_uInt16& macStyle);
+ VCL_DLLPUBLIC bool GetTTGlobalFontHeadInfo(const AbstractTrueTypeFont *ttf, int& xMin, int& yMin, int& xMax, int& yMax, sal_uInt16& macStyle);
/**
* Returns fonts metrics.
diff --git a/vcl/inc/skia/utils.hxx b/vcl/inc/skia/utils.hxx
index 473edfdf0d3f..b3a2045eea96 100644
--- a/vcl/inc/skia/utils.hxx
+++ b/vcl/inc/skia/utils.hxx
@@ -64,7 +64,7 @@ void removeCachedImage(sk_sp<SkImage> image);
constexpr int MAX_CACHE_SIZE = 4 * 2000 * 2000 * 4; // 4x 2000px 32bpp images, 64MiB
#ifdef DBG_UTIL
-void prefillSurface(sk_sp<SkSurface>& surface);
+void prefillSurface(const sk_sp<SkSurface>& surface);
VCL_DLLPUBLIC void dump(const SkBitmap& bitmap, const char* file);
VCL_DLLPUBLIC void dump(const sk_sp<SkImage>& image, const char* file);
VCL_DLLPUBLIC void dump(const sk_sp<SkSurface>& surface, const char* file);
diff --git a/vcl/inc/svimpbox.hxx b/vcl/inc/svimpbox.hxx
index 3def46700396..92d5754387c7 100644
--- a/vcl/inc/svimpbox.hxx
+++ b/vcl/inc/svimpbox.hxx
@@ -300,7 +300,7 @@ public:
void ShowCursor( bool bShow );
bool RequestHelp( const HelpEvent& rHEvt );
- bool IsNodeButton( const Point& rPosPixel, SvTreeListEntry* pEntry ) const;
+ bool IsNodeButton( const Point& rPosPixel, const SvTreeListEntry* pEntry ) const;
void SetUpdateMode( bool bMode );
bool GetUpdateMode() const { return m_bUpdateMode; }
tools::Rectangle GetClipRegionRect() const;
diff --git a/vcl/inc/test/outputdevice.hxx b/vcl/inc/test/outputdevice.hxx
index 293e817d35e9..c0d9a61cdb10 100644
--- a/vcl/inc/test/outputdevice.hxx
+++ b/vcl/inc/test/outputdevice.hxx
@@ -102,7 +102,7 @@ public:
static TestResult checkTransformedBitmap(Bitmap& rBitmap);
static TestResult checkBitmapExWithAlpha(Bitmap& rBitmap);
static TestResult checkMask(Bitmap& rBitmap);
- static TestResult checkBlend(BitmapEx& rBitmap);
+ static TestResult checkBlend(const BitmapEx& rBitmap);
};
class VCL_DLLPUBLIC OutputDeviceTestAnotherOutDev : public OutputDeviceTestCommon
diff --git a/vcl/inc/unx/glyphcache.hxx b/vcl/inc/unx/glyphcache.hxx
index 993a0cf49a22..4e409560a981 100644
--- a/vcl/inc/unx/glyphcache.hxx
+++ b/vcl/inc/unx/glyphcache.hxx
@@ -141,7 +141,7 @@ private:
friend class FreetypeFontInstance;
friend class FreetypeManager;
- explicit FreetypeFont(FreetypeFontInstance&, std::shared_ptr<FreetypeFontInfo>& rFontInfo);
+ explicit FreetypeFont(FreetypeFontInstance&, const std::shared_ptr<FreetypeFontInfo>& rFontInfo);
void ApplyGlyphTransform(bool bVertical, FT_Glyph) const;
diff --git a/vcl/inc/unx/saldisp.hxx b/vcl/inc/unx/saldisp.hxx
index b5bed8e60b54..660a87ac47f7 100644
--- a/vcl/inc/unx/saldisp.hxx
+++ b/vcl/inc/unx/saldisp.hxx
@@ -325,7 +325,7 @@ public:
#ifdef DBG_UTIL
void PrintInfo() const;
- void DbgPrintDisplayEvent(const char *pComment, XEvent *pEvent) const;
+ void DbgPrintDisplayEvent(const char *pComment, const XEvent *pEvent) const;
#endif
void Beep() const;