diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-25 14:08:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-25 21:46:32 +0200 |
commit | ff3bdde2527123fc9e011ff0d93e958174632186 (patch) | |
tree | 07d86dceca57fc1c85ad208fb436d70ac7e648ab /include/sfx2 | |
parent | 305285bd1450bb847058a877b0dc2adface4e521 (diff) |
loplugin:passstuffbyref
Change-Id: I785e96599bbda029adf4698d11d7f981750dec07
Reviewed-on: https://gerrit.libreoffice.org/54802
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/charwin.hxx | 4 | ||||
-rw-r--r-- | include/sfx2/opengrf.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/sfx2/charwin.hxx b/include/sfx2/charwin.hxx index 85c40d84b225..c718815b9bd2 100644 --- a/include/sfx2/charwin.hxx +++ b/include/sfx2/charwin.hxx @@ -50,9 +50,9 @@ public: SvxCharView(const VclPtr<VirtualDevice>& rVirDev); void SetFont( const vcl::Font& rFont ); - vcl::Font GetFont() const { return maFont; } + vcl::Font const & GetFont() const { return maFont; } void SetText( const OUString& rText ); - OUString GetText() const { return m_sText; } + OUString const & GetText() const { return m_sText; } void SetHasInsert( bool bInsert ); void InsertCharToDoc(); diff --git a/include/sfx2/opengrf.hxx b/include/sfx2/opengrf.hxx index 0178cc0bb745..c99433a2c3f0 100644 --- a/include/sfx2/opengrf.hxx +++ b/include/sfx2/opengrf.hxx @@ -55,7 +55,7 @@ public: OUString const & GetDetectedFilter() const; void SetDetectedFilter(const OUString&); - css::uno::Reference<css::ui::dialogs::XFilePickerControlAccess> GetFilePickerControlAccess(); + css::uno::Reference<css::ui::dialogs::XFilePickerControlAccess> const & GetFilePickerControlAccess(); private: SvxOpenGraphicDialog (const SvxOpenGraphicDialog&) = delete; |