diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-06 19:00:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-08 08:31:45 +0200 |
commit | 40b1e5d40667e5863aa213a31fa1b06085bd407a (patch) | |
tree | f4e0fe96260e6bd52763af539729785853ba3734 /include/test/sheet | |
parent | 107af098311beafaadb343c5a3634389f56006a0 (diff) |
loplugin:passstuffbyref
Change-Id: I6e6c47020073ec183c6c8ff9cd026a0bec23b177
Reviewed-on: https://gerrit.libreoffice.org/57088
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/test/sheet')
-rw-r--r-- | include/test/sheet/xcellrangereferrer.hxx | 2 | ||||
-rw-r--r-- | include/test/sheet/xdocumentauditing.hxx | 2 | ||||
-rw-r--r-- | include/test/sheet/xformulaquery.hxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/test/sheet/xcellrangereferrer.hxx b/include/test/sheet/xcellrangereferrer.hxx index 4fcdd5d003aa..f840a6bd1355 100644 --- a/include/test/sheet/xcellrangereferrer.hxx +++ b/include/test/sheet/xcellrangereferrer.hxx @@ -24,7 +24,7 @@ public: virtual css::uno::Reference< css::uno::XInterface > init() = 0; void setCellRange(css::table::CellRangeAddress aCellRange) { m_aCellRange = aCellRange; } - const css::table::CellRangeAddress getCellRange() { return m_aCellRange; } + const css::table::CellRangeAddress & getCellRange() { return m_aCellRange; } void testGetReferredCells(); protected: diff --git a/include/test/sheet/xdocumentauditing.hxx b/include/test/sheet/xdocumentauditing.hxx index 6453c06c8e7b..71fe119980cf 100644 --- a/include/test/sheet/xdocumentauditing.hxx +++ b/include/test/sheet/xdocumentauditing.hxx @@ -35,7 +35,7 @@ protected: private: bool hasRightAmountOfShapes(const css::uno::Reference<css::drawing::XDrawPage>& xDrawPage, - const sal_Int32& nElementCount, const sal_Int32& nShapes); + sal_Int32 nElementCount, sal_Int32 nShapes); void dispatch(const css::uno::Reference<css::frame::XFrame>& xFrame, const css::uno::Sequence<css::beans::PropertyValue>& rArguments); css::awt::Point m_Position; diff --git a/include/test/sheet/xformulaquery.hxx b/include/test/sheet/xformulaquery.hxx index 5dcfea27b49f..a306a6838cf4 100644 --- a/include/test/sheet/xformulaquery.hxx +++ b/include/test/sheet/xformulaquery.hxx @@ -35,7 +35,7 @@ public: virtual css::uno::Reference<css::uno::XInterface> init() = 0; virtual css::uno::Reference<css::uno::XInterface> getXSpreadsheet() = 0; void setXCell(css::uno::Reference<css::table::XCell> xCell) { m_xCell = xCell; } - css::uno::Reference<css::table::XCell> getXCell() { return m_xCell; } + css::uno::Reference<css::table::XCell> const& getXCell() { return m_xCell; } void testQueryDependents(); void testQueryPrecedents(); |