vcl/source/outdev/font.cxx |    6 ------
 1 file changed, 6 deletions(-)

New commits:
commit b5b2291366a098c4495df274ae1513b6301692fc
Author:     Bogdan Buzea <buzea.bog...@libreoffice.org>
AuthorDate: Tue Oct 22 06:11:22 2024 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Tue Oct 22 11:59:32 2024 +0200

    tdf#163486: PVS: Identical branches
    
    V1037 Two or more case-branches perform the same actions. Check lines: 465, 
472
    V1037 Two or more case-branches perform the same actions. Check lines: 497, 
505
    
    Change-Id: I826e2236100727f19bb60662dc7145e8e4814421
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175389
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx
index 334f6a311eb0..45b773a20c01 100644
--- a/vcl/source/outdev/font.cxx
+++ b/vcl/source/outdev/font.cxx
@@ -462,9 +462,6 @@ vcl::Font OutputDevice::GetDefaultFont( DefaultFontType 
nType, LanguageType eLan
     {
         case DefaultFontType::SANS_UNICODE:
         case DefaultFontType::UI_SANS:
-            aFont.SetFamily( FAMILY_SWISS );
-            break;
-
         case DefaultFontType::SANS:
         case DefaultFontType::LATIN_HEADING:
         case DefaultFontType::LATIN_SPREADSHEET:
@@ -494,9 +491,6 @@ vcl::Font OutputDevice::GetDefaultFont( DefaultFontType 
nType, LanguageType eLan
         case DefaultFontType::CJK_SPREADSHEET:
         case DefaultFontType::CJK_HEADING:
         case DefaultFontType::CJK_DISPLAY:
-            aFont.SetFamily( FAMILY_SYSTEM ); // don't care, but don't use 
font subst config later...
-            break;
-
         case DefaultFontType::CTL_TEXT:
         case DefaultFontType::CTL_PRESENTATION:
         case DefaultFontType::CTL_SPREADSHEET:

Reply via email to