From 7e16ec0347453851ef2f8870cfcf9fdbbc6bb99f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 12 Mar 2012 09:58:10 +0000 Subject: pointless comparison --- vcl/source/gdi/outdev3.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'vcl') diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx index ac507afc9967..768f1e82d19d 100755 --- a/vcl/source/gdi/outdev3.cxx +++ b/vcl/source/gdi/outdev3.cxx @@ -1674,10 +1674,7 @@ ImplDevFontListData* ImplDevFontList::ImplFindByLocale( com::sun::star::lang::Lo // get the default font for a specified locale const DefaultFontConfiguration& rDefaults = DefaultFontConfiguration::get(); const String aDefault = rDefaults.getUserInterfaceFont( rLocale ); - ImplDevFontListData* pFontData = ImplFindByTokenNames( aDefault ); - if( pFontData ) - return pFontData; - return NULL; + return ImplFindByTokenNames( aDefault ); } // ----------------------------------------------------------------------- -- cgit