summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/generic/glyphs/freetype_glyphcache.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/unx/generic/glyphs/freetype_glyphcache.cxx b/vcl/unx/generic/glyphs/freetype_glyphcache.cxx
index 55df59ef0bab..bc46febae7da 100644
--- a/vcl/unx/generic/glyphs/freetype_glyphcache.cxx
+++ b/vcl/unx/generic/glyphs/freetype_glyphcache.cxx
@@ -222,8 +222,8 @@ FreetypeFontInfo::FreetypeFontInfo( const FontAttributes& rDevFontAttributes,
FreetypeFontInfo::~FreetypeFontInfo()
{
- if( mxFontCharMap )
- mxFontCharMap = nullptr;
+ if( mxFontCharMap.Is() )
+ mxFontCharMap.Clear();
delete mpChar2Glyph;
delete mpGlyph2Char;
#if ENABLE_GRAPHITE
@@ -979,7 +979,7 @@ const FontCharMapRef ServerFont::GetFontCharMap() const
const FontCharMapRef& FreetypeFontInfo::GetFontCharMap()
{
// check if the charmap is already cached
- if( mxFontCharMap )
+ if( mxFontCharMap.Is() )
return mxFontCharMap;
// get the charmap and cache it