diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-25 14:08:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-25 21:46:32 +0200 |
commit | ff3bdde2527123fc9e011ff0d93e958174632186 (patch) | |
tree | 07d86dceca57fc1c85ad208fb436d70ac7e648ab /sc/inc/userdat.hxx | |
parent | 305285bd1450bb847058a877b0dc2adface4e521 (diff) |
loplugin:passstuffbyref
Change-Id: I785e96599bbda029adf4698d11d7f981750dec07
Reviewed-on: https://gerrit.libreoffice.org/54802
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc/userdat.hxx')
-rw-r--r-- | sc/inc/userdat.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/inc/userdat.hxx b/sc/inc/userdat.hxx index 655d869b0d84..8b1b1cee9e77 100644 --- a/sc/inc/userdat.hxx +++ b/sc/inc/userdat.hxx @@ -47,8 +47,8 @@ public: explicit ScDrawObjData(); - tools::Rectangle getShapeRect() { return maShapeRect; }; - tools::Rectangle getLastCellRect() { return maLastCellRect; }; + const tools::Rectangle & getShapeRect() { return maShapeRect; }; + const tools::Rectangle & getLastCellRect() { 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 |