diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:28:29 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:32:00 +0100 |
commit | d3b6cb7ec2da4afb5687c9d28b2be2f96e6aa7b1 (patch) | |
tree | e9d209d6d5f06cacd8e0df78c7f6b8ad45d74be5 /vcl/source/gdi/embeddedfontshelper.cxx | |
parent | 45979047abbd9da7a29401f298e8ef9ab58ad337 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I05e89f9896170d4df3d1377549ea074f06b884a0
Diffstat (limited to 'vcl/source/gdi/embeddedfontshelper.cxx')
-rw-r--r-- | vcl/source/gdi/embeddedfontshelper.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/gdi/embeddedfontshelper.cxx b/vcl/source/gdi/embeddedfontshelper.cxx index 6a4f79260d99..fa7fb59eee5c 100644 --- a/vcl/source/gdi/embeddedfontshelper.cxx +++ b/vcl/source/gdi/embeddedfontshelper.cxx @@ -109,7 +109,7 @@ bool EmbeddedFontsHelper::addEmbeddedFont( uno::Reference< io::XInputStream > st if( eot ) { unsigned uncompressedFontSize = 0; - unsigned char *nakedPointerToUncompressedFont = NULL; + unsigned char *nakedPointerToUncompressedFont = nullptr; libeot::EOTMetadata eotMetadata; libeot::EOTError uncompressError = libeot::EOT2ttf_buffer( reinterpret_cast<unsigned char *>(&fontData[0]), fontData.size(), &eotMetadata, &nakedPointerToUncompressedFont, &uncompressedFontSize ); @@ -231,7 +231,7 @@ OUString EmbeddedFontsHelper::fontFileUrl( const OUString& familyName, FontFamil PhysicalFontCollection fonts; graphics->GetDevFontList( &fonts ); std::unique_ptr< ImplGetDevFontList > fontInfo( fonts.GetDevFontList()); - PhysicalFontFace* selected = NULL; + PhysicalFontFace* selected = nullptr; for( int i = 0; i < fontInfo->Count(); ++i ) @@ -261,11 +261,11 @@ OUString EmbeddedFontsHelper::fontFileUrl( const OUString& familyName, FontFamil } } } - if( selected != NULL ) + if( selected != nullptr ) { FontSubsetInfo info; long size; - if( const void* data = graphics->GetEmbedFontData( selected, NULL, NULL, 0, info, &size )) + if( const void* data = graphics->GetEmbedFontData( selected, nullptr, nullptr, 0, info, &size )) { if( sufficientTTFRights( data, size, rights )) { |