diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-25 14:01:06 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-25 14:01:06 +0200 |
commit | 758e6f39d96237881198818e3bac432012be61d8 (patch) | |
tree | d516e6b53b6b88c4b736eebfaf3ac6ab810fad78 /svx | |
parent | 8d1fa417bc49a9e9eee923e3ce6a37d7b0f056f1 (diff) |
loplugin:passstuffbyref
Change-Id: Ic214bb8870a67314ec64bb4bc0aa869767cba3ae
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/table/tablerow.cxx | 2 | ||||
-rw-r--r-- | svx/source/table/tablerow.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
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; |