diff options
-rw-r--r-- | vcl/headless/svpprn.cxx | 2 | ||||
-rw-r--r-- | vcl/opengl/salbmp.cxx | 2 | ||||
-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 | ||||
-rw-r--r-- | vcl/unx/generic/app/saldisp.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/printer/ppdparser.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk/a11y/atkutil.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/kde4/KDESalFrame.cxx | 2 | ||||
-rw-r--r-- | vcl/workben/vcldemo.cxx | 26 |
18 files changed, 32 insertions, 31 deletions
diff --git a/vcl/headless/svpprn.cxx b/vcl/headless/svpprn.cxx index ac6cfdd26cab..ec5450a87c61 100644 --- a/vcl/headless/svpprn.cxx +++ b/vcl/headless/svpprn.cxx @@ -160,7 +160,7 @@ SalInfoPrinter* SvpSalInstance::CreateInfoPrinter( SalPrinterQueueInfo* pQueueIn ImplJobSetup* pJobSetup ) { // create and initialize SalInfoPrinter - SvpSalInfoPrinter* pPrinter = new SvpSalInfoPrinter(); + SvpSalInfoPrinter* pPrinter = new SvpSalInfoPrinter; if( pJobSetup ) { diff --git a/vcl/opengl/salbmp.cxx b/vcl/opengl/salbmp.cxx index c36866045d0a..f5d458ed9c5b 100644 --- a/vcl/opengl/salbmp.cxx +++ b/vcl/opengl/salbmp.cxx @@ -95,7 +95,7 @@ sal_uInt16 lclBytesPerRow(sal_uInt16 nBits, int nWidth) } typedef std::vector<std::unique_ptr< FixedTextureAtlasManager > > TextureAtlasVector; -static vcl::DeleteOnDeinit< TextureAtlasVector > gTextureAtlases(new TextureAtlasVector()); +static vcl::DeleteOnDeinit< TextureAtlasVector > gTextureAtlases(new TextureAtlasVector); } 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++ ) diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx index d61e63919ee5..c694096b549b 100644 --- a/vcl/unx/generic/app/saldisp.cxx +++ b/vcl/unx/generic/app/saldisp.cxx @@ -2592,7 +2592,7 @@ SalColormap::SalColormap( sal_uInt16 nDepth ) TrueColor, &aVI ) ) { - aVI.visual = new Visual(); + aVI.visual = new Visual; aVI.visualid = (VisualID)0; // beware of temporary destructor below aVI.screen = 0; aVI.depth = nDepth; diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx index 429cd5486598..0315bad08ea2 100644 --- a/vcl/unx/generic/printer/ppdparser.cxx +++ b/vcl/unx/generic/printer/ppdparser.cxx @@ -450,7 +450,7 @@ void PPDParser::initPPDFiles(PPDCache &rPPDCache) if( rPPDCache.pAllPPDFiles ) return; - rPPDCache.pAllPPDFiles = new std::unordered_map< OUString, OUString, OUStringHash >(); + rPPDCache.pAllPPDFiles = new std::unordered_map< OUString, OUString, OUStringHash >; // check installation directories std::list< OUString > aPathList; diff --git a/vcl/unx/gtk/a11y/atkutil.cxx b/vcl/unx/gtk/a11y/atkutil.cxx index 42f635ec966e..0f21a61bd863 100644 --- a/vcl/unx/gtk/a11y/atkutil.cxx +++ b/vcl/unx/gtk/a11y/atkutil.cxx @@ -519,7 +519,7 @@ WindowList g_aWindowList; static void handle_get_focus(::VclWindowEvent const * pEvent) { static rtl::Reference< DocumentFocusListener > aDocumentFocusListener = - new DocumentFocusListener(); + new DocumentFocusListener; vcl::Window *pWindow = pEvent->GetWindow(); diff --git a/vcl/unx/kde4/KDESalFrame.cxx b/vcl/unx/kde4/KDESalFrame.cxx index 26f0e59c2ed0..2d4b1eb24470 100644 --- a/vcl/unx/kde4/KDESalFrame.cxx +++ b/vcl/unx/kde4/KDESalFrame.cxx @@ -382,7 +382,7 @@ SalGraphics* KDESalFrame::AcquireGraphics() m_aGraphics[i].bInUse = true; if( ! m_aGraphics[i].pGraphics ) { - m_aGraphics[i].pGraphics = new KDESalGraphics(); + m_aGraphics[i].pGraphics = new KDESalGraphics; m_aGraphics[i].pGraphics->Init( this, GetWindow(), GetScreenNumber() ); } return m_aGraphics[i].pGraphics; diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx index a24139dcc3fb..66fd7cff8316 100644 --- a/vcl/workben/vcldemo.cxx +++ b/vcl/workben/vcldemo.cxx @@ -1619,20 +1619,20 @@ bool DemoRenderer::MouseButtonDown(const MouseEvent& rMEvt) void DemoRenderer::InitRenderers() { - maRenderers.push_back(new DrawLines()); - maRenderers.push_back(new DrawText()); - maRenderers.push_back(new DrawPoly()); - maRenderers.push_back(new DrawEllipse()); - maRenderers.push_back(new DrawCheckered()); - maRenderers.push_back(new DrawBitmapEx()); - maRenderers.push_back(new DrawBitmap()); - maRenderers.push_back(new DrawGradient()); - maRenderers.push_back(new DrawPolyPolygons()); - maRenderers.push_back(new DrawClipped()); - maRenderers.push_back(new DrawToVirtualDevice()); - maRenderers.push_back(new DrawXOR()); + maRenderers.push_back(new DrawLines); + maRenderers.push_back(new DrawText); + maRenderers.push_back(new DrawPoly); + maRenderers.push_back(new DrawEllipse); + maRenderers.push_back(new DrawCheckered); + maRenderers.push_back(new DrawBitmapEx); + maRenderers.push_back(new DrawBitmap); + maRenderers.push_back(new DrawGradient); + maRenderers.push_back(new DrawPolyPolygons); + maRenderers.push_back(new DrawClipped); + maRenderers.push_back(new DrawToVirtualDevice); + maRenderers.push_back(new DrawXOR); maRenderers.push_back(new DrawIcons()); - maRenderers.push_back(new FetchDrawBitmap()); + maRenderers.push_back(new FetchDrawBitmap); } OUString DemoRenderer::getRendererList() |