summaryrefslogtreecommitdiff
path: root/vcl/source/outdev
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-20 11:26:28 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-21 07:34:56 +0100
commit18e07fd7d98d157af922dc64070e7c57f7dc9802 (patch)
treed4f3abb676f18be2b80c3358807a249daf82f53a /vcl/source/outdev
parent4f502dd5700f29ce8fe0c1e6a9de337a9ebe3216 (diff)
loplugin:subtlezeroinit: vcl
Change-Id: I041390c7cea1e246f07e799ee2430c16e86723d8
Diffstat (limited to 'vcl/source/outdev')
-rw-r--r--vcl/source/outdev/font.cxx2
-rw-r--r--vcl/source/outdev/outdev.cxx2
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;
}