From a0e136d2cbb3784ddfcbddcfed5d784c8e4c9a64 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 2 Jan 2018 11:33:15 +0200 Subject: loplugin:passstuffbyref improved return in sd,various Change-Id: I4b6ea89ae2072f4389a696ea3c96d8f7a5731e7a Reviewed-on: https://gerrit.libreoffice.org/47246 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sd/source/ui/view/ViewShellBase.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sd/source/ui/view/ViewShellBase.cxx') 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 ViewShellBase::GetViewShellManager() const +std::shared_ptr const & ViewShellBase::GetViewShellManager() const { return mpImpl->mpViewShellManager; } @@ -920,7 +920,7 @@ OUString ViewShellBase::GetInitialViewShellType() return sRequestedView; } -std::shared_ptr ViewShellBase::GetEventMultiplexer() +std::shared_ptr 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 ViewShellBase::GetToolBarManager() const +std::shared_ptr const & ViewShellBase::GetToolBarManager() const { OSL_ASSERT(mpImpl.get()!=nullptr); OSL_ASSERT(mpImpl->mpToolBarManager.get()!=nullptr); @@ -941,7 +941,7 @@ std::shared_ptr ViewShellBase::GetToolBarManager() const return mpImpl->mpToolBarManager; } -std::shared_ptr ViewShellBase::GetFormShellManager() const +std::shared_ptr const & ViewShellBase::GetFormShellManager() const { OSL_ASSERT(mpImpl.get()!=nullptr); OSL_ASSERT(mpImpl->mpFormShellManager.get()!=nullptr); -- cgit