[Libreoffice-commits] core.git: Branch 'libreoffice-5-2' - svx/source

Stephan Bergmann sbergman at redhat.com
Thu Jun 9 12:49:59 UTC 2016


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

New commits:
commit ee5644f3df0e727e9f31398e21d72727641193e5
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Jun 8 16:53:37 2016 +0200

    loplugin:passstuffbyref
    
    Change-Id: I637e1c9d5af1f9d8ad5141c8d07ea72232656070
    (cherry picked from commit 46c7ecf760bbea6541507c319e8e722f9b4ec712)
    Reviewed-on: https://gerrit.libreoffice.org/26097
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Tor Lillqvist <tml at collabora.com>

diff --git a/svx/source/table/tablecolumn.cxx b/svx/source/table/tablecolumn.cxx
index c5ceade..44536f5 100644
--- a/svx/source/table/tablecolumn.cxx
+++ b/svx/source/table/tablecolumn.cxx
@@ -283,7 +283,7 @@ rtl::Reference< FastPropertySetInfo > TableColumn::getStaticPropertySetInfo()
     return xInfo;
 }
 
-TableModelRef TableColumn::getModel() const
+TableModelRef const & TableColumn::getModel() const
 {
     return mxTableModel;
 }
diff --git a/svx/source/table/tablecolumn.hxx b/svx/source/table/tablecolumn.hxx
index 0c5083d..320b384 100644
--- a/svx/source/table/tablecolumn.hxx
+++ b/svx/source/table/tablecolumn.hxx
@@ -59,7 +59,7 @@ public:
     virtual css::uno::Any SAL_CALL getFastPropertyValue( ::sal_Int32 nHandle ) throw (css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
 
     /// Get the table that owns this column.
-    TableModelRef getModel() const;
+    TableModelRef const & getModel() const;
     /// Get the width of this column.
     sal_Int32 getWidth() const;
 


More information about the Libreoffice-commits mailing list