summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-25 14:08:33 +0200
committerCaolán McNamara <caolanm@redhat.com>2018-05-28 16:33:45 +0200
commit3341435d7916c209c7613d594f78059ba112495b (patch)
treea1a38bc474ff0f659204d13db30ea2d14f958c3f /sc/inc
parent20c6ab6b492d360faafeb857ef51bc0da5f645f6 (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> (cherry picked from commit ff3bdde2527123fc9e011ff0d93e958174632186) Reviewed-on: https://gerrit.libreoffice.org/54914 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/scmod.hxx2
-rw-r--r--sc/inc/userdat.hxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/inc/scmod.hxx b/sc/inc/scmod.hxx
index e3974dcf39ad..b2742ddba9a0 100644
--- a/sc/inc/scmod.hxx
+++ b/sc/inc/scmod.hxx
@@ -175,7 +175,7 @@ public:
void SetPrintOptions ( const ScPrintOptions& rOpt );
void InsertEntryToLRUList(sal_uInt16 nFIndex);
- SC_DLLPUBLIC css::uno::Reference<css::datatransfer::XTransferable2>
+ SC_DLLPUBLIC const css::uno::Reference<css::datatransfer::XTransferable2> &
GetClipData() { return m_xClipData; }
SC_DLLPUBLIC void SetClipData(
const css::uno::Reference<css::datatransfer::XTransferable2>& xTransferable) { m_xClipData = xTransferable; }
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