summaryrefslogtreecommitdiff
path: root/sc/inc/userdat.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-25 13:31:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-26 10:15:00 +0200
commitbdc8fda4be875ff9cfa9c3f4b5e40284a8637374 (patch)
tree67eb55dcd1e9649e074e49ca0dd069920a2ae866 /sc/inc/userdat.hxx
parentb11268fadf76618ad37d27219b7f51255f8f8b5a (diff)
loplugin:constmethod in sc
Change-Id: I78c4fb4acf21756f91582caee5e30e3ad1fc2ae4 Reviewed-on: https://gerrit.libreoffice.org/79543 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc/userdat.hxx')
-rw-r--r--sc/inc/userdat.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/inc/userdat.hxx b/sc/inc/userdat.hxx
index e05662757193..769f19bd62cd 100644
--- a/sc/inc/userdat.hxx
+++ b/sc/inc/userdat.hxx
@@ -45,8 +45,8 @@ public:
explicit ScDrawObjData();
- const tools::Rectangle & getShapeRect() { return maShapeRect; };
- const tools::Rectangle & getLastCellRect() { return maLastCellRect; };
+ const tools::Rectangle & getShapeRect() const { return maShapeRect; };
+ const tools::Rectangle & getLastCellRect() const { return maLastCellRect; };
void setShapeRect(const ScDocument* rDoc, tools::Rectangle rNewRect, bool bIsVisible=true)
{
// bIsVisible should be false when the object is hidden obviously. we dont want to store the old cell rect in that