summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-06-08 16:53:37 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-06-08 16:53:37 +0200
commit46c7ecf760bbea6541507c319e8e722f9b4ec712 (patch)
treec966cc91bfa3e7f8dcf47bad84e9aba56bcd8755 /svx
parent9cea9137b2534da4056f72d3c8a07f85a02f85be (diff)
loplugin:passstuffbyref
Change-Id: I637e1c9d5af1f9d8ad5141c8d07ea72232656070
Diffstat (limited to 'svx')
-rw-r--r--svx/source/table/tablecolumn.cxx2
-rw-r--r--svx/source/table/tablecolumn.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/table/tablecolumn.cxx b/svx/source/table/tablecolumn.cxx
index c5ceadee0680..44536f50499f 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 0c5083d5ce8f..320b38431b09 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;