diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-26 13:26:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-28 07:19:46 +0100 |
commit | 65f007c629e5a7b2710e21e3f26164b433576e27 (patch) | |
tree | d064b7c23ffe3948443fe1a4499a56308e01f97a /sd | |
parent | 1446e097e76669c0d7749ec0f8918606d3cc4c28 (diff) |
remove some unused local vars
found by my new aggressive unused var plugin. these are unused return
values from function calls
Change-Id: I3359c583f535828f192cb833762dfedc008d82f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87439
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/framework/factories/BasicViewFactory.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/view/SlideSorterView.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/view/ViewShellBase.cxx | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/sd/source/ui/framework/factories/BasicViewFactory.cxx b/sd/source/ui/framework/factories/BasicViewFactory.cxx index c4260ce8fc6b..83601e413e2b 100644 --- a/sd/source/ui/framework/factories/BasicViewFactory.cxx +++ b/sd/source/ui/framework/factories/BasicViewFactory.cxx @@ -438,7 +438,7 @@ bool BasicViewFactory::IsCacheable (const std::shared_ptr<ViewDescriptor>& rpDes static ::std::vector<Reference<XResourceId> > s_aCacheableResources = [&]() { ::std::vector<Reference<XResourceId> > tmp; - std::shared_ptr<FrameworkHelper> pHelper (FrameworkHelper::Instance(*mpBase)); + FrameworkHelper::Instance(*mpBase); // The slide sorter and the task panel are cacheable and relocatable. tmp.push_back(FrameworkHelper::CreateResourceId( diff --git a/sd/source/ui/slidesorter/view/SlideSorterView.cxx b/sd/source/ui/slidesorter/view/SlideSorterView.cxx index 19ac5f42b231..19750734056e 100644 --- a/sd/source/ui/slidesorter/view/SlideSorterView.cxx +++ b/sd/source/ui/slidesorter/view/SlideSorterView.cxx @@ -224,8 +224,7 @@ void SlideSorterView::PostModelChange() // create new ones. ::osl::MutexGuard aGuard (mrModel.GetMutex()); - model::PageEnumeration aPageEnumeration ( - model::PageEnumerationProvider::CreateAllPagesEnumeration(mrModel)); + model::PageEnumerationProvider::CreateAllPagesEnumeration(mrModel); // The new page objects have to be scaled and positioned. RequestRearrange(); diff --git a/sd/source/ui/view/ViewShellBase.cxx b/sd/source/ui/view/ViewShellBase.cxx index b1650903d7d7..57b18bb945e4 100644 --- a/sd/source/ui/view/ViewShellBase.cxx +++ b/sd/source/ui/view/ViewShellBase.cxx @@ -317,7 +317,7 @@ void ViewShellBase::LateInit (const OUString& rsDefaultView) if (sView.isEmpty()) sView = GetInitialViewShellType(); - std::shared_ptr<FrameworkHelper> pHelper (FrameworkHelper::Instance(*this)); + FrameworkHelper::Instance(*this); // Create the resource ids for the center pane and view. const Reference<drawing::framework::XResourceId> xCenterPaneId ( |