From 52cda5c5ae426761ccbdb4f20419098eab195303 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 6 Oct 2019 21:37:40 +0200 Subject: Fix FIXME in swcache.hxx by getting rid of useless IsAvail() function Change-Id: I7c3bbf74a9ef3aaa792936ef2b4887021226dd2a Reviewed-on: https://gerrit.libreoffice.org/80327 Tested-by: Jenkins Reviewed-by: Julien Nabet --- sw/source/core/txtnode/fntcache.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/source/core/txtnode/fntcache.cxx') diff --git a/sw/source/core/txtnode/fntcache.cxx b/sw/source/core/txtnode/fntcache.cxx index 085317e4a259..d5999b8f9bbe 100644 --- a/sw/source/core/txtnode/fntcache.cxx +++ b/sw/source/core/txtnode/fntcache.cxx @@ -2275,7 +2275,7 @@ SwFntAccess::SwFntAccess( const void* & rnFontCacheId, m_pShell( pSh ) { // the used ctor of SwCacheAccess searches for rnFontCacheId+rIndex in the cache - if ( IsAvail() ) + if ( m_pObj ) { // fast case: known Font (rnFontCacheId), no need to check printer and zoom if ( !bCheck ) -- cgit v1.2.3