summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-25 14:08:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-25 21:46:32 +0200
commitff3bdde2527123fc9e011ff0d93e958174632186 (patch)
tree07d86dceca57fc1c85ad208fb436d70ac7e648ab /sc
parent305285bd1450bb847058a877b0dc2adface4e521 (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')
-rw-r--r--sc/inc/scmod.hxx2
-rw-r--r--sc/inc/userdat.hxx4
-rw-r--r--sc/source/ui/inc/tabvwsh.hxx2
3 files changed, 4 insertions, 4 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
diff --git a/sc/source/ui/inc/tabvwsh.hxx b/sc/source/ui/inc/tabvwsh.hxx
index 0c6bb6b119ec..2181e61aa325 100644
--- a/sc/source/ui/inc/tabvwsh.hxx
+++ b/sc/source/ui/inc/tabvwsh.hxx
@@ -395,7 +395,7 @@ public:
static bool isAnyEditViewInRange(bool bColumns, SCCOLROW nStart, SCCOLROW nEnd);
css::uno::Reference<css::drawing::XShapes> getSelectedXShapes();
- css::uno::Reference<css::datatransfer::XTransferable2> GetClipData() { return m_xClipData; };
+ const css::uno::Reference<css::datatransfer::XTransferable2> & GetClipData() { return m_xClipData; };
void SetClipData(const css::uno::Reference<css::datatransfer::XTransferable2>& xTransferable) { m_xClipData = xTransferable; }
};