diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-28 19:48:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-29 08:02:04 +0100 |
commit | e0eb09405b2f4d95532d37bc37054a51e5a0177b (patch) | |
tree | b88291ecf58898a0b42ac124fcecf95d7229e7a3 /include/svx/colorbox.hxx | |
parent | 31f71635a136daf36d554e0c20db9ae0d1686c23 (diff) |
loplugin:passstuffbyref improved return in svx
Change-Id: I33bdbd416709ce46afb3c17aeab0d2e19a68ab30
Reviewed-on: https://gerrit.libreoffice.org/47150
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx/colorbox.hxx')
-rw-r--r-- | include/svx/colorbox.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/svx/colorbox.hxx b/include/svx/colorbox.hxx index f9655b28bc27..8ffbc12db77f 100644 --- a/include/svx/colorbox.hxx +++ b/include/svx/colorbox.hxx @@ -46,7 +46,7 @@ private: void Selected(const NamedColor& rNamedColor); void createColorWindow(); void LockWidthRequest(); - VclPtr<SvxColorWindow> getColorWindow() const; + VclPtr<SvxColorWindow> const & getColorWindow() const; public: SvxColorListBox(vcl::Window* pParent, WinBits nStyle = 0); virtual ~SvxColorListBox() override; @@ -59,8 +59,8 @@ public: void SetSlotId(sal_uInt16 nSlotId, bool bShowNoneButton = false); - Color GetSelectEntryColor() const { return m_aSelectedColor.first; } - NamedColor GetSelectedEntry() const { return m_aSelectedColor; } + Color const & GetSelectEntryColor() const { return m_aSelectedColor.first; } + NamedColor const & GetSelectedEntry() const { return m_aSelectedColor; } void SelectEntry(const NamedColor& rColor); void SelectEntry(const Color& rColor); |