diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-20 11:26:28 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-21 07:34:56 +0100 |
commit | 18e07fd7d98d157af922dc64070e7c57f7dc9802 (patch) | |
tree | d4f3abb676f18be2b80c3358807a249daf82f53a /vcl/source/outdev | |
parent | 4f502dd5700f29ce8fe0c1e6a9de337a9ebe3216 (diff) |
loplugin:subtlezeroinit: vcl
Change-Id: I041390c7cea1e246f07e799ee2430c16e86723d8
Diffstat (limited to 'vcl/source/outdev')
-rw-r--r-- | vcl/source/outdev/font.cxx | 2 | ||||
-rw-r--r-- | vcl/source/outdev/outdev.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
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; } |