[Libreoffice-commits] core.git: svx/source

Stephan Bergmann sbergman at redhat.com
Mon Apr 25 12:01:35 UTC 2016


 svx/source/table/tablerow.cxx |    2 +-
 svx/source/table/tablerow.hxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 758e6f39d96237881198818e3bac432012be61d8
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Apr 25 14:01:06 2016 +0200

    loplugin:passstuffbyref
    
    Change-Id: Ic214bb8870a67314ec64bb4bc0aa869767cba3ae

diff --git a/svx/source/table/tablerow.cxx b/svx/source/table/tablerow.cxx
index cd82cc4..5070e0c 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 6b38b80..9ecc6ef 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;


More information about the Libreoffice-commits mailing list