diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-20 12:33:19 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-21 07:35:01 +0100 |
commit | fa177eb3e3f6698c2798d85f0a287607221fa695 (patch) | |
tree | 0283dd9a02ae5445062943af85d62a18064be3ee /sd | |
parent | 1c039083b82d9672de8a2cd088d4e3bd18f99fd0 (diff) |
loplugin:subtlezeroinit: sd
Change-Id: I2cfa2507235d51c5518123a290abfa6a4f945872
Diffstat (limited to 'sd')
18 files changed, 23 insertions, 23 deletions
diff --git a/sd/source/core/stlfamily.cxx b/sd/source/core/stlfamily.cxx index 2099abccc62c..ee8db41641a6 100644 --- a/sd/source/core/stlfamily.cxx +++ b/sd/source/core/stlfamily.cxx @@ -101,7 +101,7 @@ SdStyleFamily::SdStyleFamily( const rtl::Reference< SfxStyleSheetPool >& xPool, SdStyleFamily::SdStyleFamily( const rtl::Reference< SfxStyleSheetPool >& xPool, const SdPage* pMasterPage ) : mnFamily( SD_STYLE_FAMILY_MASTERPAGE ) , mxPool( xPool ) -, mpImpl( new SdStyleFamilyImpl() ) +, mpImpl( new SdStyleFamilyImpl ) { mpImpl->mxMasterPage.reset( const_cast< SdPage* >( pMasterPage ) ); mpImpl->mxPool = xPool; diff --git a/sd/source/ui/animations/SlideTransitionPane.cxx b/sd/source/ui/animations/SlideTransitionPane.cxx index b62fa85b84f7..387b8172db66 100644 --- a/sd/source/ui/animations/SlideTransitionPane.cxx +++ b/sd/source/ui/animations/SlideTransitionPane.cxx @@ -570,7 +570,7 @@ void SlideTransitionPane::onChangeCurrentPage() } else { - pSelection.reset(new sd::slidesorter::SlideSorterViewShell::PageSelection()); + pSelection.reset(new sd::slidesorter::SlideSorterViewShell::PageSelection); if( mxView.is() ) { SdPage* pPage = SdPage::getImplementation( mxView->getCurrentPage() ); @@ -1014,7 +1014,7 @@ IMPL_LINK_NOARG(SlideTransitionPane, ApplyToAllButtonClicked, Button*, void) return; ::sd::slidesorter::SharedPageSelection pPages ( - new ::sd::slidesorter::SlideSorterViewShell::PageSelection()); + new ::sd::slidesorter::SlideSorterViewShell::PageSelection); sal_uInt16 nPageCount = mpDrawDoc->GetSdPageCount( PageKind::Standard ); pPages->reserve( nPageCount ); diff --git a/sd/source/ui/dlg/TemplateScanner.cxx b/sd/source/ui/dlg/TemplateScanner.cxx index edc802bdc462..b81d4708b5c2 100644 --- a/sd/source/ui/dlg/TemplateScanner.cxx +++ b/sd/source/ui/dlg/TemplateScanner.cxx @@ -154,7 +154,7 @@ TemplateScanner::TemplateScanner() mpTemplateDirectory(nullptr), maFolderList(), mpLastAddedEntry(nullptr), - mpFolderDescriptors(new FolderDescriptorList()), + mpFolderDescriptors(new FolderDescriptorList), mxTemplateRoot(), mxFolderEnvironment(), mxEntryEnvironment(), diff --git a/sd/source/ui/framework/factories/BasicViewFactory.cxx b/sd/source/ui/framework/factories/BasicViewFactory.cxx index 28916b6f1bc3..0eace0ed525d 100644 --- a/sd/source/ui/framework/factories/BasicViewFactory.cxx +++ b/sd/source/ui/framework/factories/BasicViewFactory.cxx @@ -283,7 +283,7 @@ std::shared_ptr<BasicViewFactory::ViewDescriptor> BasicViewFactory::CreateView ( FrameView* pFrameView, const bool bIsCenterPane) { - std::shared_ptr<ViewDescriptor> pDescriptor (new ViewDescriptor()); + std::shared_ptr<ViewDescriptor> pDescriptor (new ViewDescriptor); pDescriptor->mpViewShell = CreateViewShell( rxViewId, diff --git a/sd/source/ui/presenter/PresenterPreviewCache.cxx b/sd/source/ui/presenter/PresenterPreviewCache.cxx index da02be8d842d..a55330d3865b 100644 --- a/sd/source/ui/presenter/PresenterPreviewCache.cxx +++ b/sd/source/ui/presenter/PresenterPreviewCache.cxx @@ -285,7 +285,7 @@ const SdrPage* PresenterPreviewCache::PresenterCacheContext::GetPage (CacheKey a std::shared_ptr<std::vector<CacheKey> > PresenterPreviewCache::PresenterCacheContext::GetEntryList (bool bVisible) { - std::shared_ptr<std::vector<CacheKey> > pKeys (new std::vector<CacheKey>()); + std::shared_ptr<std::vector<CacheKey> > pKeys (new std::vector<CacheKey>); if ( ! mxSlides.is()) return pKeys; diff --git a/sd/source/ui/sidebar/LayoutMenu.cxx b/sd/source/ui/sidebar/LayoutMenu.cxx index 73f7dafaf188..eac3c34810e7 100644 --- a/sd/source/ui/sidebar/LayoutMenu.cxx +++ b/sd/source/ui/sidebar/LayoutMenu.cxx @@ -434,7 +434,7 @@ void LayoutMenu::AssignLayoutToSelectedSlides (AutoLayout aLayout) { // No valid slide sorter available. Ask the main view shell for // its current page. - pPageSelection.reset(new ::sd::slidesorter::SlideSorterViewShell::PageSelection()); + pPageSelection.reset(new ::sd::slidesorter::SlideSorterViewShell::PageSelection); pPageSelection->push_back(pMainViewShell->GetActualPage()); } diff --git a/sd/source/ui/sidebar/MasterPageDescriptor.cxx b/sd/source/ui/sidebar/MasterPageDescriptor.cxx index ce2f2757a2c5..1083cf983c8b 100644 --- a/sd/source/ui/sidebar/MasterPageDescriptor.cxx +++ b/sd/source/ui/sidebar/MasterPageDescriptor.cxx @@ -145,7 +145,7 @@ const Image& MasterPageDescriptor::GetPreview (MasterPageContainer::PreviewSize ::std::unique_ptr<std::vector<MasterPageContainerChangeEvent::EventType> > pResult; if (bDataChanged || bIndexChanged || bPreviewChanged) { - pResult.reset(new std::vector<MasterPageContainerChangeEvent::EventType>()); + pResult.reset(new std::vector<MasterPageContainerChangeEvent::EventType>); if (bDataChanged) pResult->push_back(MasterPageContainerChangeEvent::EventType::DATA_CHANGED); if (bIndexChanged) diff --git a/sd/source/ui/sidebar/MasterPageObserver.cxx b/sd/source/ui/sidebar/MasterPageObserver.cxx index 6443223f73b0..53391614ec2c 100644 --- a/sd/source/ui/sidebar/MasterPageObserver.cxx +++ b/sd/source/ui/sidebar/MasterPageObserver.cxx @@ -140,7 +140,7 @@ void MasterPageObserver::RemoveEventListener (const Link<MasterPageObserverEvent } MasterPageObserver::MasterPageObserver() - : mpImpl (new Implementation()) + : mpImpl (new Implementation) {} MasterPageObserver::~MasterPageObserver() diff --git a/sd/source/ui/sidebar/MasterPagesSelector.cxx b/sd/source/ui/sidebar/MasterPagesSelector.cxx index 42bc5461f08d..ff733e8dd806 100644 --- a/sd/source/ui/sidebar/MasterPagesSelector.cxx +++ b/sd/source/ui/sidebar/MasterPagesSelector.cxx @@ -156,7 +156,7 @@ void MasterPagesSelector::UpdateLocks (const ItemList& rItemList) void MasterPagesSelector::Fill() { - ::std::unique_ptr<ItemList> pItemList (new ItemList()); + ::std::unique_ptr<ItemList> pItemList (new ItemList); Fill(*pItemList); @@ -364,7 +364,7 @@ void MasterPagesSelector::AssignMasterPageToAllSlides (SdPage* pMasterPage) // assigned. OUString sFullLayoutName(pMasterPage->GetLayoutName()); ::sd::slidesorter::SharedPageSelection pPageList ( - new ::sd::slidesorter::SlideSorterViewShell::PageSelection()); + new ::sd::slidesorter::SlideSorterViewShell::PageSelection); for (sal_uInt16 nPageIndex=0; nPageIndex<nPageCount; nPageIndex++) { SdPage* pPage = mrDocument.GetSdPage (nPageIndex, PageKind::Standard); diff --git a/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx b/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx index 82de3de025f2..351100a33a39 100644 --- a/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx +++ b/sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx @@ -394,7 +394,7 @@ void BitmapCache::Recycle (const BitmapCache& rCache) ::std::sort(aSortedContainer.begin(), aSortedContainer.end(), AccessTimeComparator()); // Return a list with the keys of the sorted entries. - ::std::unique_ptr<CacheIndex> pIndex(new CacheIndex()); + ::std::unique_ptr<CacheIndex> pIndex(new CacheIndex); SortableBitmapContainer::iterator iIndexEntry; pIndex->reserve(aSortedContainer.size()); for (iIndexEntry=aSortedContainer.begin(); iIndexEntry!=aSortedContainer.end(); ++iIndexEntry) diff --git a/sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx b/sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx index 6d82fa16d546..f811f70960ae 100644 --- a/sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx +++ b/sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx @@ -102,7 +102,7 @@ sal_Int32 ResolutionReduction::ResolutionReducedReplacement::GetMemorySize() con std::shared_ptr<BitmapReplacement> ResolutionReduction::Compress ( const Bitmap& rBitmap) const { - ResolutionReducedReplacement* pResult = new ResolutionReducedReplacement(); + ResolutionReducedReplacement* pResult = new ResolutionReducedReplacement; pResult->maPreview = rBitmap; Size aSize (rBitmap.GetSizePixel()); pResult->maOriginalSize = aSize; diff --git a/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx b/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx index b9d3add376ae..563eb87a4733 100644 --- a/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx +++ b/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx @@ -89,13 +89,13 @@ namespace sd { namespace slidesorter { namespace cache { if (aCompressionPolicy.has<OUString>()) aCompressionPolicy >>= sCompressionPolicy; if (sCompressionPolicy == sNone) - pCompressor.reset(new NoBitmapCompression()); + pCompressor.reset(new NoBitmapCompression); else if (sCompressionPolicy == "Erase") - pCompressor.reset(new CompressionByDeletion()); + pCompressor.reset(new CompressionByDeletion); else if (sCompressionPolicy == "ResolutionReduction") - pCompressor.reset(new ResolutionReduction()); + pCompressor.reset(new ResolutionReduction); else - pCompressor.reset(new PngCompression()); + pCompressor.reset(new PngCompression); ::std::unique_ptr<CacheCompactor> pCompactor; OUString sCompactionPolicy("Compress"); diff --git a/sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx b/sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx index c5a7ab4a09bb..e20e963cb597 100644 --- a/sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx +++ b/sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx @@ -85,7 +85,7 @@ class RequestQueue::Container RequestQueue::RequestQueue (const SharedCacheContext& rpCacheContext) : maMutex(), - mpRequestQueue(new Container()), + mpRequestQueue(new Container), mpCacheContext(rpCacheContext), mnMinimumPriority(0), mnMaximumPriority(1) diff --git a/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx b/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx index d7766d2da5ba..bf35f39e54a8 100644 --- a/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx +++ b/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx @@ -260,7 +260,7 @@ void PageSelector::DisableBroadcasting() std::shared_ptr<PageSelector::PageSelection> PageSelector::GetPageSelection() const { - std::shared_ptr<PageSelection> pSelection (new PageSelection()); + std::shared_ptr<PageSelection> pSelection (new PageSelection); pSelection->reserve(GetSelectedPageCount()); int nPageCount = GetPageCount(); diff --git a/sd/source/ui/slidesorter/view/SlsViewCacheContext.cxx b/sd/source/ui/slidesorter/view/SlsViewCacheContext.cxx index c88fab8eeecc..10ea1f09e71d 100644 --- a/sd/source/ui/slidesorter/view/SlsViewCacheContext.cxx +++ b/sd/source/ui/slidesorter/view/SlsViewCacheContext.cxx @@ -85,7 +85,7 @@ const SdrPage* ViewCacheContext::GetPage (cache::CacheKey aKey) std::shared_ptr<std::vector<cache::CacheKey> > ViewCacheContext::GetEntryList (bool bVisible) { - std::shared_ptr<std::vector<cache::CacheKey> > pKeys (new std::vector<cache::CacheKey>()); + std::shared_ptr<std::vector<cache::CacheKey> > pKeys (new std::vector<cache::CacheKey>); model::PageEnumeration aPageEnumeration ( bVisible diff --git a/sd/source/ui/tools/IconCache.cxx b/sd/source/ui/tools/IconCache.cxx index ecc15e15e1a1..5e7156f7a3f2 100644 --- a/sd/source/ui/tools/IconCache.cxx +++ b/sd/source/ui/tools/IconCache.cxx @@ -96,7 +96,7 @@ Image IconCache::GetIcon (sal_uInt16 nResourceId) } IconCache::IconCache() - : mpImpl (new Implementation()) + : mpImpl (new Implementation) { } diff --git a/sd/source/ui/tools/PropertySet.cxx b/sd/source/ui/tools/PropertySet.cxx index 59d25cb0618c..934636a2153d 100644 --- a/sd/source/ui/tools/PropertySet.cxx +++ b/sd/source/ui/tools/PropertySet.cxx @@ -27,7 +27,7 @@ namespace sd { namespace tools { PropertySet::PropertySet() : PropertySetInterfaceBase(m_aMutex), - mpChangeListeners(new ChangeListenerContainer()) + mpChangeListeners(new ChangeListenerContainer) { } diff --git a/sd/source/ui/tools/SdGlobalResourceContainer.cxx b/sd/source/ui/tools/SdGlobalResourceContainer.cxx index 14653553ec67..eda6e230f4d2 100644 --- a/sd/source/ui/tools/SdGlobalResourceContainer.cxx +++ b/sd/source/ui/tools/SdGlobalResourceContainer.cxx @@ -146,7 +146,7 @@ void SdGlobalResourceContainer::AddResource (const Reference<XInterface>& rxReso } SdGlobalResourceContainer::SdGlobalResourceContainer() - : mpImpl (new SdGlobalResourceContainer::Implementation()) + : mpImpl (new SdGlobalResourceContainer::Implementation) { } |