summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/framework/factories/BasicViewFactory.cxx2
-rw-r--r--sd/source/ui/slidesorter/view/SlideSorterView.cxx3
-rw-r--r--sd/source/ui/view/ViewShellBase.cxx2
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 (