diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-02 11:33:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-02 13:15:33 +0100 |
commit | a0e136d2cbb3784ddfcbddcfed5d784c8e4c9a64 (patch) | |
tree | a86891188892c9525679a4a2a47ab772e7ccecbc /sd/source/ui/view/ViewShellBase.cxx | |
parent | 4855257e52056241633c2b1d8159c3f0e71e05f3 (diff) |
loplugin:passstuffbyref improved return in sd,various
Change-Id: I4b6ea89ae2072f4389a696ea3c96d8f7a5731e7a
Reviewed-on: https://gerrit.libreoffice.org/47246
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/view/ViewShellBase.cxx')
-rw-r--r-- | sd/source/ui/view/ViewShellBase.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/view/ViewShellBase.cxx b/sd/source/ui/view/ViewShellBase.cxx index 99dca2efed88..ab6eca07ca5e 100644 --- a/sd/source/ui/view/ViewShellBase.cxx +++ b/sd/source/ui/view/ViewShellBase.cxx @@ -373,7 +373,7 @@ void ViewShellBase::LateInit (const OUString& rsDefaultView) mpImpl->SetUserWantsTabBar( bIsTabBarVisible ); } -std::shared_ptr<ViewShellManager> ViewShellBase::GetViewShellManager() const +std::shared_ptr<ViewShellManager> const & ViewShellBase::GetViewShellManager() const { return mpImpl->mpViewShellManager; } @@ -920,7 +920,7 @@ OUString ViewShellBase::GetInitialViewShellType() return sRequestedView; } -std::shared_ptr<tools::EventMultiplexer> ViewShellBase::GetEventMultiplexer() +std::shared_ptr<tools::EventMultiplexer> const & ViewShellBase::GetEventMultiplexer() { OSL_ASSERT(mpImpl.get()!=nullptr); OSL_ASSERT(mpImpl->mpEventMultiplexer.get()!=nullptr); @@ -933,7 +933,7 @@ const ::tools::Rectangle& ViewShellBase::getClientRectangle() const return mpImpl->maClientArea; } -std::shared_ptr<ToolBarManager> ViewShellBase::GetToolBarManager() const +std::shared_ptr<ToolBarManager> const & ViewShellBase::GetToolBarManager() const { OSL_ASSERT(mpImpl.get()!=nullptr); OSL_ASSERT(mpImpl->mpToolBarManager.get()!=nullptr); @@ -941,7 +941,7 @@ std::shared_ptr<ToolBarManager> ViewShellBase::GetToolBarManager() const return mpImpl->mpToolBarManager; } -std::shared_ptr<FormShellManager> ViewShellBase::GetFormShellManager() const +std::shared_ptr<FormShellManager> const & ViewShellBase::GetFormShellManager() const { OSL_ASSERT(mpImpl.get()!=nullptr); OSL_ASSERT(mpImpl->mpFormShellManager.get()!=nullptr); |