From bdc8fda4be875ff9cfa9c3f4b5e40284a8637374 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 25 Sep 2019 13:31:52 +0200 Subject: loplugin:constmethod in sc Change-Id: I78c4fb4acf21756f91582caee5e30e3ad1fc2ae4 Reviewed-on: https://gerrit.libreoffice.org/79543 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/inc/userdat.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sc/inc/userdat.hxx') 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 -- cgit