summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-06-08 16:53:37 +0200
committerTor Lillqvist <tml@collabora.com>2016-06-09 12:49:36 +0000
commitee5644f3df0e727e9f31398e21d72727641193e5 (patch)
treef280f83f1ffd6736f363d57cd1a571983dff9ff3 /svx
parent62f70c3f75bcf7b554cf3e18017ee690820636aa (diff)
loplugin:passstuffbyref
Change-Id: I637e1c9d5af1f9d8ad5141c8d07ea72232656070 (cherry picked from commit 46c7ecf760bbea6541507c319e8e722f9b4ec712) Reviewed-on: https://gerrit.libreoffice.org/26097 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tor Lillqvist <tml@collabora.com>
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;