diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-18 09:32:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-18 20:10:57 +0200 |
commit | 31f04378dbc07d4367dc3b66163aaed171cf0323 (patch) | |
tree | 803e8caa6fa9cecdab5e1a0047fbd334fd2ab1ee /writerfilter | |
parent | 2836b78b54650d117282a9a345677d1b4d9fc043 (diff) |
loplugin:passstuffbyref
Change-Id: Icb7c22cf4ac95eab54d04e79312fb471ca27bceb
Reviewed-on: https://gerrit.libreoffice.org/74246
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/dmapper/SettingsTable.cxx | 2 | ||||
-rw-r--r-- | writerfilter/source/dmapper/SettingsTable.hxx | 2 | ||||
-rw-r--r-- | writerfilter/source/dmapper/StyleSheetTable.cxx | 2 | ||||
-rw-r--r-- | writerfilter/source/dmapper/StyleSheetTable.hxx | 2 | ||||
-rw-r--r-- | writerfilter/source/rtftok/rtfdocumentimpl.hxx | 4 |
5 files changed, 6 insertions, 6 deletions
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<css::beans::PropertyValue> 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; |