From 3be72fe233b3e6d7aeb267f6c82d8bf9759b39ef Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 22 Aug 2019 10:02:35 +0200 Subject: loplugin:constmethod in vcl Change-Id: I20545527b117c9562b91076b748fb3e2659d2497 Reviewed-on: https://gerrit.libreoffice.org/77944 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/unx/generic/print/glyphset.hxx | 4 ++-- vcl/unx/generic/print/prtsetup.cxx | 8 ++++---- vcl/unx/generic/print/prtsetup.hxx | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'vcl/unx/generic/print') diff --git a/vcl/unx/generic/print/glyphset.hxx b/vcl/unx/generic/print/glyphset.hxx index 52f7052bd710..f3599a4e8a89 100644 --- a/vcl/unx/generic/print/glyphset.hxx +++ b/vcl/unx/generic/print/glyphset.hxx @@ -65,12 +65,12 @@ public: GlyphSet (sal_Int32 nFontID, bool bVertical); ~GlyphSet (); - sal_Int32 GetFontID () { return mnFontID;} + sal_Int32 GetFontID () const { return mnFontID;} static OString GetReencodedFontName (rtl_TextEncoding nEnc, const OString &rFontName); - bool IsVertical () { return mbVertical;} + bool IsVertical () const { return mbVertical;} void DrawGlyph (PrinterGfx& rGfx, const Point& rPoint, diff --git a/vcl/unx/generic/print/prtsetup.cxx b/vcl/unx/generic/print/prtsetup.cxx index d3c565846c17..72d550f11844 100644 --- a/vcl/unx/generic/print/prtsetup.cxx +++ b/vcl/unx/generic/print/prtsetup.cxx @@ -378,7 +378,7 @@ RTSDevicePage::~RTSDevicePage() { } -sal_uLong RTSDevicePage::getDepth() +sal_uLong RTSDevicePage::getDepth() const { sal_uInt16 nSelectPos = m_xDepthBox->get_active(); if (nSelectPos == 0) @@ -387,7 +387,7 @@ sal_uLong RTSDevicePage::getDepth() return 24; } -sal_uLong RTSDevicePage::getColorDevice() +sal_uLong RTSDevicePage::getColorDevice() const { sal_uInt16 nSelectPos = m_xSpaceBox->get_active(); switch (nSelectPos) @@ -402,7 +402,7 @@ sal_uLong RTSDevicePage::getColorDevice() return 0; } -sal_uLong RTSDevicePage::getLevel() +sal_uLong RTSDevicePage::getLevel() const { auto nLevel = m_xLevelBox->get_active_id().toInt32(); if (nLevel == 0) @@ -410,7 +410,7 @@ sal_uLong RTSDevicePage::getLevel() return nLevel < 10 ? nLevel-1 : 0; } -sal_uLong RTSDevicePage::getPDFDevice() +sal_uLong RTSDevicePage::getPDFDevice() const { auto nLevel = m_xLevelBox->get_active_id().toInt32(); if (nLevel > 9) diff --git a/vcl/unx/generic/print/prtsetup.hxx b/vcl/unx/generic/print/prtsetup.hxx index 67eabe92a6a6..a2282e2980b1 100644 --- a/vcl/unx/generic/print/prtsetup.hxx +++ b/vcl/unx/generic/print/prtsetup.hxx @@ -126,10 +126,10 @@ public: RTSDevicePage(weld::Widget* pPage, RTSDialog* pDialog); ~RTSDevicePage(); - sal_uLong getLevel(); - sal_uLong getPDFDevice(); - sal_uLong getDepth(); - sal_uLong getColorDevice(); + sal_uLong getLevel() const; + sal_uLong getPDFDevice() const; + sal_uLong getDepth() const; + sal_uLong getColorDevice() const; }; int SetupPrinterDriver(weld::Window* pParent, ::psp::PrinterInfo& rJobData); -- cgit