summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-01 13:01:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-01 20:58:11 +0200
commit581efdec36787dc5e378e54d13e7328fddcf3a50 (patch)
tree29f04e719f8402028a4e26088a8ea825ebe9fdca /sc
parente512b53ef8ae7945131876d32121fdbbdeb1de35 (diff)
loplugin:constmethod
Change-Id: I3ed657c5c5e6840e38e3c8505505b4b372125df0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122910 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/inc/anyrefdg.hxx2
-rw-r--r--sc/source/ui/inc/gridwin.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/inc/anyrefdg.hxx b/sc/source/ui/inc/anyrefdg.hxx
index 0c0e8978a2a7..55f3a2b2929f 100644
--- a/sc/source/ui/inc/anyrefdg.hxx
+++ b/sc/source/ui/inc/anyrefdg.hxx
@@ -75,7 +75,7 @@ public:
public:
static bool CanInputStart( const formula::RefEdit *pEdit ){ return !!pEdit; }
- bool CanInputDone(bool bForced) { return m_pRefEdit && (bForced || !m_pRefBtn); }
+ bool CanInputDone(bool bForced) const { return m_pRefEdit && (bForced || !m_pRefBtn); }
};
class ScRefHandler : public IAnyRefDialog
diff --git a/sc/source/ui/inc/gridwin.hxx b/sc/source/ui/inc/gridwin.hxx
index e5de1d02100c..3af70e4f6448 100644
--- a/sc/source/ui/inc/gridwin.hxx
+++ b/sc/source/ui/inc/gridwin.hxx
@@ -440,7 +440,7 @@ public:
void StopMarking();
void UpdateInputContext();
- bool NeedsRepaint() { return bNeedsRepaint; }
+ bool NeedsRepaint() const { return bNeedsRepaint; }
void DoInvertRect( const tools::Rectangle& rPixel );