diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-01-25 20:31:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-26 08:30:42 +0100 |
commit | c83166ce7126b3c3c6aca8f6d2ab9cd9e16f5763 (patch) | |
tree | 2760b4870bf080fedcb40bf8c6f93c32030c4f7d /writerfilter | |
parent | a553c85cbd80a045b2e4742eefaa7fcc3953cb08 (diff) |
loplugin:passstuffbyref
Change-Id: I330e0ab6c9955939dad313f9d472f93e39dbd313
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109924
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'writerfilter')
6 files changed, 9 insertions, 9 deletions
diff --git a/writerfilter/source/dmapper/DomainMapperTableManager.cxx b/writerfilter/source/dmapper/DomainMapperTableManager.cxx index cefe801145c5..da78cb682e5c 100644 --- a/writerfilter/source/dmapper/DomainMapperTableManager.cxx +++ b/writerfilter/source/dmapper/DomainMapperTableManager.cxx @@ -413,7 +413,7 @@ TablePositionHandler* DomainMapperTableManager::getCurrentTableRealPosition() return nullptr; } -TableParagraphVectorPtr DomainMapperTableManager::getCurrentParagraphs( ) +const TableParagraphVectorPtr & DomainMapperTableManager::getCurrentParagraphs( ) { return m_aParagraphsToEndTable.top( ); } diff --git a/writerfilter/source/dmapper/DomainMapperTableManager.hxx b/writerfilter/source/dmapper/DomainMapperTableManager.hxx index 1eb61b6df309..9b30e6dd8315 100644 --- a/writerfilter/source/dmapper/DomainMapperTableManager.hxx +++ b/writerfilter/source/dmapper/DomainMapperTableManager.hxx @@ -89,7 +89,7 @@ public: IntVectorPtr const & getCurrentGrid( ); IntVectorPtr const & getCurrentCellWidths( ); - TableParagraphVectorPtr getCurrentParagraphs( ); + const TableParagraphVectorPtr & getCurrentParagraphs( ); /// Turn the attributes collected so far in m_aTableLook into a property and clear the container. void finishTableLook(); diff --git a/writerfilter/source/dmapper/NumberingManager.cxx b/writerfilter/source/dmapper/NumberingManager.cxx index ec86b041e216..2143f3b2f04c 100644 --- a/writerfilter/source/dmapper/NumberingManager.cxx +++ b/writerfilter/source/dmapper/NumberingManager.cxx @@ -414,7 +414,7 @@ ListDef::~ListDef( ) { } -OUString ListDef::GetStyleName(sal_Int32 const nId, +const OUString & ListDef::GetStyleName(sal_Int32 const nId, uno::Reference<container::XNameContainer> const& xStyles) { if (xStyles.is()) diff --git a/writerfilter/source/dmapper/NumberingManager.hxx b/writerfilter/source/dmapper/NumberingManager.hxx index 86c8cfbfd9e1..0a4c3e18f8e6 100644 --- a/writerfilter/source/dmapper/NumberingManager.hxx +++ b/writerfilter/source/dmapper/NumberingManager.hxx @@ -193,8 +193,8 @@ public: const AbstractListDef::Pointer& GetAbstractDefinition( ) const { return m_pAbstractDef; }; // Mapping functions - OUString GetStyleName() const { return m_StyleName; }; - OUString GetStyleName(sal_Int32 nId, css::uno::Reference<css::container::XNameContainer> const& xStyles); + const OUString & GetStyleName() const { return m_StyleName; }; + const OUString & GetStyleName(sal_Int32 nId, css::uno::Reference<css::container::XNameContainer> const& xStyles); sal_Int16 GetDefaultParentLevels() const { return m_nDefaultParentLevels; }; diff --git a/writerfilter/source/dmapper/SettingsTable.cxx b/writerfilter/source/dmapper/SettingsTable.cxx index 788fd93f25bc..24f0e26e0545 100644 --- a/writerfilter/source/dmapper/SettingsTable.cxx +++ b/writerfilter/source/dmapper/SettingsTable.cxx @@ -693,12 +693,12 @@ sal_Int16 SettingsTable::GetHyphenationZone() const return m_pImpl->m_nHyphenationZone; } -OUString SettingsTable::GetDecimalSymbol() const +const OUString & SettingsTable::GetDecimalSymbol() const { return m_pImpl->m_sDecimalSymbol; } -OUString SettingsTable::GetListSeparator() const +const OUString & SettingsTable::GetListSeparator() const { return m_pImpl->m_sListSeparator; } diff --git a/writerfilter/source/dmapper/SettingsTable.hxx b/writerfilter/source/dmapper/SettingsTable.hxx index 035384af52be..f7cf2793861a 100644 --- a/writerfilter/source/dmapper/SettingsTable.hxx +++ b/writerfilter/source/dmapper/SettingsTable.hxx @@ -79,8 +79,8 @@ public: bool GetNoHyphenateCaps() const; sal_Int16 GetHyphenationZone() const; - OUString GetDecimalSymbol() const; - OUString GetListSeparator() const; + const OUString& GetDecimalSymbol() const; + const OUString& GetListSeparator() const; css::uno::Sequence<css::beans::PropertyValue> const& GetThemeFontLangProperties() const; |