From 758e6f39d96237881198818e3bac432012be61d8 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 25 Apr 2016 14:01:06 +0200 Subject: loplugin:passstuffbyref Change-Id: Ic214bb8870a67314ec64bb4bc0aa869767cba3ae --- svx/source/table/tablerow.cxx | 2 +- svx/source/table/tablerow.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'svx/source/table') diff --git a/svx/source/table/tablerow.cxx b/svx/source/table/tablerow.cxx index cd82cc423b45..5070e0cf32c6 100644 --- a/svx/source/table/tablerow.cxx +++ b/svx/source/table/tablerow.cxx @@ -149,7 +149,7 @@ void TableRow::removeColumns( sal_Int32 nIndex, sal_Int32 nCount ) } } -TableModelRef TableRow::getModel() const +TableModelRef const & TableRow::getModel() const { return mxTableModel; } diff --git a/svx/source/table/tablerow.hxx b/svx/source/table/tablerow.hxx index 6b38b8037389..9ecc6ef1cf9d 100644 --- a/svx/source/table/tablerow.hxx +++ b/svx/source/table/tablerow.hxx @@ -48,7 +48,7 @@ public: void insertColumns( sal_Int32 nIndex, sal_Int32 nCount, CellVector::iterator* pIter = nullptr ); void removeColumns( sal_Int32 nIndex, sal_Int32 nCount ); /// Reference to the table model containing this row. - TableModelRef getModel() const; + TableModelRef const & getModel() const; // XCellRange virtual css::uno::Reference< css::table::XCell > SAL_CALL getCellByPosition( sal_Int32 nColumn, sal_Int32 nRow ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) override; -- cgit