From a214f12c20ae76ddbe307554aae1873eb590306b Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Sat, 19 Jan 2019 08:57:54 +0100 Subject: Index is not needed for single getToken call Change-Id: I503e6e96a6a61b45e741f2131107ecaef8566b83 Reviewed-on: https://gerrit.libreoffice.org/66640 Tested-by: Jenkins Reviewed-by: Matteo Casalin --- vcl/source/outdev/font.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'vcl/source') diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx index 04e689a17f67..082c9e4084bf 100644 --- a/vcl/source/outdev/font.cxx +++ b/vcl/source/outdev/font.cxx @@ -878,8 +878,7 @@ vcl::Font OutputDevice::GetDefaultFont( DefaultFontType nType, LanguageType eLan if( !pOutDev ) { SAL_WARN_IF(!utl::ConfigManager::IsFuzzing(), "vcl.gdi", "No default window has been set for the application - we really shouldn't be able to get here"); - sal_Int32 nIndex = 0; - aFont.SetFamilyName( aSearch.getToken( 0, ';', nIndex ) ); + aFont.SetFamilyName( aSearch.getToken( 0, ';' ) ); } else { -- cgit