diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-20 13:00:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-20 15:24:34 +0200 |
commit | 9f958c076a86e80a48fcd7bbca65a834568e94ea (patch) | |
tree | cfa0b4f55a6b6717e5a359357fd20779e9d98b00 /include/svx | |
parent | a40558be785756929f606ab0798a026b985e0ffb (diff) |
loplugin:passstuffbyref
Change-Id: I336fd329b577b6fa141265d8bc7ce67784bd7306
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133210
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/colorbox.hxx | 2 | ||||
-rw-r--r-- | include/svx/sxmtpitm.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/svx/colorbox.hxx b/include/svx/colorbox.hxx index 0dc858d1e67d..3775fc187fd2 100644 --- a/include/svx/colorbox.hxx +++ b/include/svx/colorbox.hxx @@ -62,7 +62,7 @@ public: Color const& GetSelectEntryColor() const { return m_aSelectedColor.m_aColor; } NamedColor GetSelectedEntry() const { return m_aSelectedColor.ToNamedColor(); } - svx::NamedThemedColor GetSelectedEntryThemedColor() const { return m_aSelectedColor; } + const svx::NamedThemedColor& GetSelectedEntryThemedColor() const { return m_aSelectedColor; } void SelectEntry(const NamedColor& rColor); void SelectEntry(const Color& rColor); diff --git a/include/svx/sxmtpitm.hxx b/include/svx/sxmtpitm.hxx index 2445909e2fd4..60e17d445d61 100644 --- a/include/svx/sxmtpitm.hxx +++ b/include/svx/sxmtpitm.hxx @@ -37,7 +37,7 @@ public: virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; - static OUString GetValueTextByPos(sal_uInt16 nPos); + static const OUString & GetValueTextByPos(sal_uInt16 nPos); virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString& rText, const IntlWrapper&) const override; }; |