From 31f04378dbc07d4367dc3b66163aaed171cf0323 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 18 Jun 2019 09:32:00 +0200 Subject: loplugin:passstuffbyref Change-Id: Icb7c22cf4ac95eab54d04e79312fb471ca27bceb Reviewed-on: https://gerrit.libreoffice.org/74246 Tested-by: Jenkins Reviewed-by: Noel Grandin --- writerfilter/source/dmapper/SettingsTable.cxx | 2 +- writerfilter/source/dmapper/SettingsTable.hxx | 2 +- writerfilter/source/dmapper/StyleSheetTable.cxx | 2 +- writerfilter/source/dmapper/StyleSheetTable.hxx | 2 +- writerfilter/source/rtftok/rtfdocumentimpl.hxx | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) (limited to 'writerfilter/source') diff --git a/writerfilter/source/dmapper/SettingsTable.cxx b/writerfilter/source/dmapper/SettingsTable.cxx index 8be0c6c0f114..665f61568109 100644 --- a/writerfilter/source/dmapper/SettingsTable.cxx +++ b/writerfilter/source/dmapper/SettingsTable.cxx @@ -637,7 +637,7 @@ css::uno::Sequence SettingsTable::GetDocumentProtecti return m_pImpl->m_DocumentProtection.toSequence(); } -OUString SettingsTable::GetCurrentDatabaseDataSource() const +const OUString & SettingsTable::GetCurrentDatabaseDataSource() const { return m_pImpl->m_sCurrentDatabaseDataSource; } diff --git a/writerfilter/source/dmapper/SettingsTable.hxx b/writerfilter/source/dmapper/SettingsTable.hxx index 8e7136989b47..5fdcb97ac9ee 100644 --- a/writerfilter/source/dmapper/SettingsTable.hxx +++ b/writerfilter/source/dmapper/SettingsTable.hxx @@ -88,7 +88,7 @@ class SettingsTable : public LoggedProperties, public LoggedTable sal_Int32 GetWordCompatibilityMode() const; - OUString GetCurrentDatabaseDataSource() const; + const OUString & GetCurrentDatabaseDataSource() const; private: // Properties diff --git a/writerfilter/source/dmapper/StyleSheetTable.cxx b/writerfilter/source/dmapper/StyleSheetTable.cxx index bfd535949bf4..54b072768558 100644 --- a/writerfilter/source/dmapper/StyleSheetTable.cxx +++ b/writerfilter/source/dmapper/StyleSheetTable.cxx @@ -1237,7 +1237,7 @@ const StyleSheetEntryPtr StyleSheetTable::FindDefaultParaStyle() return FindStyleSheetByISTD( m_pImpl->m_sDefaultParaStyleName ); } -const StyleSheetEntryPtr StyleSheetTable::GetCurrentEntry() +const StyleSheetEntryPtr & StyleSheetTable::GetCurrentEntry() { return m_pImpl->m_pCurrentEntry; } diff --git a/writerfilter/source/dmapper/StyleSheetTable.hxx b/writerfilter/source/dmapper/StyleSheetTable.hxx index 686779acbd71..da9987dce265 100644 --- a/writerfilter/source/dmapper/StyleSheetTable.hxx +++ b/writerfilter/source/dmapper/StyleSheetTable.hxx @@ -106,7 +106,7 @@ public: /// Returns the default character properties. PropertyMapPtr const & GetDefaultCharProps(); - const StyleSheetEntryPtr GetCurrentEntry(); + const StyleSheetEntryPtr & GetCurrentEntry(); private: // Properties diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.hxx b/writerfilter/source/rtftok/rtfdocumentimpl.hxx index f7a263c2bc11..0c69cc9a4563 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.hxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.hxx @@ -420,9 +420,9 @@ public: } void setPropName(const OUString& rPropName) { m_aPropName = rPropName; } - OUString getPropName() const { return m_aPropName; } + OUString const& getPropName() const { return m_aPropName; } void setPropType(const css::uno::Type& rPropType) { m_aPropType = rPropType; } - css::uno::Type getPropType() const { return m_aPropType; } + css::uno::Type const& getPropType() const { return m_aPropType; } void setTableRowWidthAfter(int nTableRowWidthAfter) { m_nTableRowWidthAfter = nTableRowWidthAfter; -- cgit