diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-14 10:20:52 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-14 10:24:47 +0200 |
commit | b8eb2946511ce617323b13dffe2b1d9704e0be60 (patch) | |
tree | d5aa4f91e75d654a1cdfcd75f26dd4b813a73ff7 /basctl | |
parent | d8644c8edb405abd9d71e62e43e898c1d2a28fd2 (diff) |
loplugin:passstuffbyref in various
Change-Id: I80070c83204e531c2f599f8a56193d6ffe0e5022
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/inc/basidesh.hxx | 2 | ||||
-rw-r--r-- | basctl/source/inc/dlged.hxx | 2 | ||||
-rw-r--r-- | basctl/source/inc/localizationmgr.hxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/basctl/source/inc/basidesh.hxx b/basctl/source/inc/basidesh.hxx index 1fb6dd8e884b..7db88289ed64 100644 --- a/basctl/source/inc/basidesh.hxx +++ b/basctl/source/inc/basidesh.hxx @@ -156,7 +156,7 @@ public: BaseWindow* GetCurWindow() const { return pCurWin; } ScriptDocument const& GetCurDocument() const { return m_aCurDocument; } OUString const& GetCurLibName() const { return m_aCurLibName; } - std::shared_ptr<LocalizationMgr> GetCurLocalizationMgr() const { return m_pCurLocalizationMgr; } + const std::shared_ptr<LocalizationMgr>& GetCurLocalizationMgr() const { return m_pCurLocalizationMgr; } TabBar& GetTabBar() { return *pTabBar; } WindowTable& GetWindowTable() { return aWindowTable; } diff --git a/basctl/source/inc/dlged.hxx b/basctl/source/inc/dlged.hxx index ba1427a03706..82ad3530debe 100644 --- a/basctl/source/inc/dlged.hxx +++ b/basctl/source/inc/dlged.hxx @@ -161,7 +161,7 @@ public: void SetDialog (const css::uno::Reference<css::container::XNameContainer>& xUnoControlDialogModel); void ResetDialog (); - css::uno::Reference< css::container::XNameContainer > GetDialog() const + const css::uno::Reference< css::container::XNameContainer >& GetDialog() const {return m_xUnoControlDialogModel;} css::uno::Reference< css::util::XNumberFormatsSupplier > const & GetNumberFormatsSupplier(); diff --git a/basctl/source/inc/localizationmgr.hxx b/basctl/source/inc/localizationmgr.hxx index ed1e6c7824e0..15f9bace2f36 100644 --- a/basctl/source/inc/localizationmgr.hxx +++ b/basctl/source/inc/localizationmgr.hxx @@ -72,7 +72,7 @@ public: LocalizationMgr(Shell*, ScriptDocument const&, OUString const& aLibName, const css::uno::Reference < css::resource::XStringResourceManager >& xStringResourceManager ); - css::uno::Reference< css::resource::XStringResourceManager >getStringResourceManager() + const css::uno::Reference< css::resource::XStringResourceManager >& getStringResourceManager() { return m_xStringResourceManager; } |