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 /framework | |
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 'framework')
-rw-r--r-- | framework/source/services/desktop.cxx | 2 | ||||
-rw-r--r-- | framework/source/uiconfiguration/ImageList.cxx | 2 | ||||
-rw-r--r-- | framework/source/uiconfiguration/ImageList.hxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/framework/source/services/desktop.cxx b/framework/source/services/desktop.cxx index 8f9f3f0bac85..c9b5ed8d5b2b 100644 --- a/framework/source/services/desktop.cxx +++ b/framework/source/services/desktop.cxx @@ -1762,7 +1762,7 @@ rtl::Reference<framework::Desktop> createDesktop( } -rtl::Reference<framework::Desktop> framework::getDesktop( +const rtl::Reference<framework::Desktop> & framework::getDesktop( css::uno::Reference<css::uno::XComponentContext> const & context) { static auto const instance = createDesktop(context); diff --git a/framework/source/uiconfiguration/ImageList.cxx b/framework/source/uiconfiguration/ImageList.cxx index e047e6a340c7..0e64d219c166 100644 --- a/framework/source/uiconfiguration/ImageList.cxx +++ b/framework/source/uiconfiguration/ImageList.cxx @@ -158,7 +158,7 @@ sal_uInt16 ImageList::GetImageId( sal_uInt16 nPos ) const return maImages[ nPos ]->mnId; } -OUString ImageList::GetImageName( sal_uInt16 nPos ) const +const OUString & ImageList::GetImageName( sal_uInt16 nPos ) const { return maImages[ nPos ]->maName; } diff --git a/framework/source/uiconfiguration/ImageList.hxx b/framework/source/uiconfiguration/ImageList.hxx index 668b958a07c4..0951b8369d2a 100644 --- a/framework/source/uiconfiguration/ImageList.hxx +++ b/framework/source/uiconfiguration/ImageList.hxx @@ -59,7 +59,7 @@ public: sal_uInt16 GetImageId( sal_uInt16 nPos ) const; - OUString GetImageName( sal_uInt16 nPos ) const; + const OUString & GetImageName( sal_uInt16 nPos ) const; void GetImageNames( ::std::vector< OUString >& rNames ) const; private: |