diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-02 14:00:20 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-02 14:21:53 +0000 |
commit | d5da8959c607d11d257187ef15f7d89fa8420ba1 (patch) | |
tree | 76ba25be297a65c6d1f05e09f440844e3fc44609 /vcl | |
parent | f040c43a62b01ad3a3094abdf22153e93e2caef7 (diff) |
simplify this
Change-Id: I7ede799978f29e7708bf3386199de73049427d06
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/headless/svptextrender.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/vcl/headless/svptextrender.cxx b/vcl/headless/svptextrender.cxx index d28de1893555..334c3411dcc4 100644 --- a/vcl/headless/svptextrender.cxx +++ b/vcl/headless/svptextrender.cxx @@ -85,20 +85,14 @@ namespace m_pSvpGlyphPeer = new SvpGlyphPeer(); m_pSvpGlyphCache = new SvpGlyphCache( *m_pSvpGlyphPeer ); } - void release() - { - delete m_pSvpGlyphCache; - delete m_pSvpGlyphPeer; - m_pSvpGlyphCache = NULL; - m_pSvpGlyphPeer = NULL; - } SvpGlyphCache& getGlyphCache() { return *m_pSvpGlyphCache; } ~GlyphCacheHolder() { - release(); + delete m_pSvpGlyphCache; + delete m_pSvpGlyphPeer; } }; |