diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-20 19:58:01 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-21 07:35:08 +0100 |
commit | aa512ffd39657f7c8924b2b40ad3cdb3b3282158 (patch) | |
tree | 15861d91b542ffc8bbea396b350a2d89f8e54eb3 | |
parent | fa48d00ddb1f460d6cdfb1d4ed6995e86995a3b5 (diff) |
loplugin:subtlezeroinit: cui
Change-Id: Ic206ef85750f8ccbebd28c0c698eda431f75f08b
-rw-r--r-- | cui/source/customize/cfg.cxx | 4 | ||||
-rw-r--r-- | cui/source/tabpages/tpline.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index 8cb2bc172479..fa4533f20098 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -2874,7 +2874,7 @@ SvxMainMenuOrganizerDialog::SvxMainMenuOrganizerDialog( // Copy the entries list passed in if ( entries != nullptr ) { - mpEntries = new SvxEntries(); + mpEntries = new SvxEntries; SvxEntries::const_iterator iter = entries->begin(); while ( iter != entries->end() ) @@ -3075,7 +3075,7 @@ SvxConfigEntry::SvxConfigEntry( const OUString& rDisplayName, { if (bPopUp) { - mpEntries = new SvxEntries(); + mpEntries = new SvxEntries; } } diff --git a/cui/source/tabpages/tpline.cxx b/cui/source/tabpages/tpline.cxx index 3172081f1a2c..4cb57983ca09 100644 --- a/cui/source/tabpages/tpline.cxx +++ b/cui/source/tabpages/tpline.cxx @@ -297,7 +297,7 @@ void SvxLineTabPage::InitSymbols(MenuButton* pButton) SvxBrushItem* pBrushItem = new SvxBrushItem(*it, "", GPOS_AREA, SID_ATTR_BRUSH); - SvxBmpItemInfo* pInfo = new SvxBmpItemInfo(); + SvxBmpItemInfo* pInfo = new SvxBmpItemInfo; pInfo->pBrushItem = pBrushItem; pInfo->nItemId = (sal_uInt16)(MN_GALLERY_ENTRY + i); if ( i < m_aGrfBrushItems.size() ) @@ -388,7 +388,7 @@ void SvxLineTabPage::InitSymbols(MenuButton* pButton) SvxBrushItem* pBrushItem = new SvxBrushItem(Graphic(aMeta), GPOS_AREA, SID_ATTR_BRUSH); - SvxBmpItemInfo* pInfo = new SvxBmpItemInfo(); + SvxBmpItemInfo* pInfo = new SvxBmpItemInfo; pInfo->pBrushItem = pBrushItem; pInfo->nItemId = (sal_uInt16)(MN_GALLERY_ENTRY + i + m_nNumMenuGalleryItems); if ( (size_t)(m_nNumMenuGalleryItems + i) < m_aGrfBrushItems.size() ) { |