summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/embeddedfontshelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/gdi/embeddedfontshelper.cxx')
-rw-r--r--vcl/source/gdi/embeddedfontshelper.cxx8
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 ))
{