[Libreoffice-commits] core.git: vcl/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sat Jan 19 21:17:31 UTC 2019


 vcl/source/outdev/font.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit a214f12c20ae76ddbe307554aae1873eb590306b
Author:     Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sat Jan 19 08:57:54 2019 +0100
Commit:     Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Sat Jan 19 22:17:08 2019 +0100

    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 <matteo.casalin at yahoo.com>

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
                 {


More information about the Libreoffice-commits mailing list