diff options
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/app/svdata.cxx | 4 | ||||
-rw-r--r-- | vcl/source/app/svmain.cxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/oldprintadaptor.cxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/print.cxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/regband.cxx | 3 | ||||
-rw-r--r-- | vcl/source/helper/lazydelete.cxx | 2 | ||||
-rw-r--r-- | vcl/source/outdev/font.cxx | 2 | ||||
-rw-r--r-- | vcl/source/outdev/outdev.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/menu.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/toolbox.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/toolbox2.cxx | 2 |
11 files changed, 13 insertions, 12 deletions
diff --git a/vcl/source/app/svdata.cxx b/vcl/source/app/svdata.cxx index f29b8793f13f..6df85097d4cc 100644 --- a/vcl/source/app/svdata.cxx +++ b/vcl/source/app/svdata.cxx @@ -201,7 +201,7 @@ FieldUnitStringList* ImplGetFieldUnits() { ResStringArray aUnits( ResId (SV_FUNIT_STRINGS, *pResMgr) ); sal_uInt32 nUnits = aUnits.Count(); - pSVData->maCtrlData.mpFieldUnitStrings = new FieldUnitStringList(); + pSVData->maCtrlData.mpFieldUnitStrings = new FieldUnitStringList; pSVData->maCtrlData.mpFieldUnitStrings->reserve( nUnits ); for( sal_uInt32 i = 0; i < nUnits; i++ ) { @@ -222,7 +222,7 @@ FieldUnitStringList* ImplGetCleanedFieldUnits() if( pUnits ) { size_t nUnits = pUnits->size(); - pSVData->maCtrlData.mpCleanUnitStrings = new FieldUnitStringList(); + pSVData->maCtrlData.mpCleanUnitStrings = new FieldUnitStringList; pSVData->maCtrlData.mpCleanUnitStrings->reserve( nUnits ); for( size_t i = 0; i < nUnits; ++i ) { diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx index 7d6013273526..b5700d5a8cc9 100644 --- a/vcl/source/app/svmain.cxx +++ b/vcl/source/app/svmain.cxx @@ -442,7 +442,7 @@ void DeInitVCL() { uno::Reference<frame::XDesktop2> const xDesktop = frame::Desktop::create( comphelper::getProcessComponentContext() ); - xDesktop->addEventListener(new VCLUnoWrapperDeleter()); + xDesktop->addEventListener(new VCLUnoWrapperDeleter); } catch (uno::Exception const&) { diff --git a/vcl/source/gdi/oldprintadaptor.cxx b/vcl/source/gdi/oldprintadaptor.cxx index 93bc795e315a..f142fa46972c 100644 --- a/vcl/source/gdi/oldprintadaptor.cxx +++ b/vcl/source/gdi/oldprintadaptor.cxx @@ -46,7 +46,7 @@ namespace vcl OldStylePrintAdaptor::OldStylePrintAdaptor( const VclPtr< Printer >& i_xPrinter ) : PrinterController( i_xPrinter ) - , mpData( new ImplOldStyleAdaptorData() ) + , mpData( new ImplOldStyleAdaptorData ) { } diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx index d20345e30e5a..825f2cdff913 100644 --- a/vcl/source/gdi/print.cxx +++ b/vcl/source/gdi/print.cxx @@ -1497,7 +1497,7 @@ OUString Printer::GetPaperName( Paper ePaper ) ImplSVData* pSVData = ImplGetSVData(); if( ! pSVData->mpPaperNames ) { - pSVData->mpPaperNames = new std::unordered_map< int, OUString >(); + pSVData->mpPaperNames = new std::unordered_map< int, OUString >; if( ImplGetResMgr() ) { ResStringArray aPaperStrings( VclResId( RID_STR_PAPERNAMES ) ); diff --git a/vcl/source/gdi/regband.cxx b/vcl/source/gdi/regband.cxx index d59f5c81e922..21e3f9e4dba6 100644 --- a/vcl/source/gdi/regband.cxx +++ b/vcl/source/gdi/regband.cxx @@ -96,7 +96,8 @@ ImplRegionBand::ImplRegionBand( ImplRegionBandPoint* pPrevPointCopy = nullptr; while (pPoint != nullptr) { - ImplRegionBandPoint* pPointCopy = new ImplRegionBandPoint(); + ImplRegionBandPoint* pPointCopy = new ImplRegionBandPoint; + pPointCopy->mpNextBandPoint = nullptr; pPointCopy->mnX = pPoint->mnX; pPointCopy->mnLineId = pPoint->mnLineId; pPointCopy->mbEndPoint = pPoint->mbEndPoint; diff --git a/vcl/source/helper/lazydelete.cxx b/vcl/source/helper/lazydelete.cxx index 36373454933c..e3f2b7dc0809 100644 --- a/vcl/source/helper/lazydelete.cxx +++ b/vcl/source/helper/lazydelete.cxx @@ -75,7 +75,7 @@ void DeleteOnDeinitBase::addDeinitContainer( DeleteOnDeinitBase* i_pContainer ) return; if( pSVData->mpDeinitDeleteList == nullptr ) - pSVData->mpDeinitDeleteList = new std::list< DeleteOnDeinitBase* >(); + pSVData->mpDeinitDeleteList = new std::list< DeleteOnDeinitBase* >; pSVData->mpDeinitDeleteList->push_back( i_pContainer ); } diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx index 1c04f0520489..8a597f4602e4 100644 --- a/vcl/source/outdev/font.cxx +++ b/vcl/source/outdev/font.cxx @@ -692,7 +692,7 @@ void OutputDevice::AddFontSubstitute( const OUString& rFontName, { ImplDirectFontSubstitution*& rpSubst = ImplGetSVData()->maGDIData.mpDirectFontSubst; if( !rpSubst ) - rpSubst = new ImplDirectFontSubstitution(); + rpSubst = new ImplDirectFontSubstitution; rpSubst->AddFontSubstitute( rFontName, rReplaceFontName, nFlags ); ImplGetSVData()->maGDIData.mbFontSubChanged = true; } diff --git a/vcl/source/outdev/outdev.cxx b/vcl/source/outdev/outdev.cxx index d1a3e8e97912..d99ad88a6caa 100644 --- a/vcl/source/outdev/outdev.cxx +++ b/vcl/source/outdev/outdev.cxx @@ -395,7 +395,7 @@ css::uno::Reference< css::awt::XGraphics > OutputDevice::CreateUnoGraphics() std::vector< VCLXGraphics* > *OutputDevice::CreateUnoGraphicsList() { - mpUnoGraphicsList = new std::vector< VCLXGraphics* >(); + mpUnoGraphicsList = new std::vector< VCLXGraphics* >; return mpUnoGraphicsList; } diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index 1e961b859383..48055fff8124 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -2256,7 +2256,7 @@ void Menu::ImplFillLayoutData() const { if (pWindow && pWindow->IsReallyVisible()) { - mpLayoutData = new MenuLayoutData(); + mpLayoutData = new MenuLayoutData; if (IsMenuBar()) { ImplPaint(*pWindow, 0, 0, nullptr, false, true); // FIXME diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index 549074890b50..e74baa7fab05 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -1127,7 +1127,7 @@ sal_uInt16 ToolBox::ImplFindItemPos( ToolBox* pBox, const Point& rPos ) } ImplTBDragMgr::ImplTBDragMgr() - : mpBoxList(new ImplTBList()) + : mpBoxList(new ImplTBList) , mpDragBox(nullptr) , mnMinWidth(0) , mnMaxWidth(0) diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx index b95e1a801973..83eaffc28adc 100644 --- a/vcl/source/window/toolbox2.cxx +++ b/vcl/source/window/toolbox2.cxx @@ -1472,7 +1472,7 @@ void ToolBox::ImplUpdateInputEnable() void ToolBox::ImplFillLayoutData() const { - mpData->m_pLayoutData = new ToolBoxLayoutData(); + mpData->m_pLayoutData = new ToolBoxLayoutData; sal_uInt16 nCount = (sal_uInt16)mpData->m_aItems.size(); for( sal_uInt16 i = 0; i < nCount; i++ ) |