[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Wed Apr 14 07:47:01 UTC 2021
vcl/unx/generic/fontmanager/fontconfig.cxx | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
New commits:
commit b7a38c1dfeab7c5eebb7fd5bc571e68b343bffb7
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Apr 13 20:45:24 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Apr 14 09:46:21 2021 +0200
hintstyle is unused
left behind after...
commit 561a02ec72cf963d7cd59cfb9a183c1032f0861b
Date: Thu Jun 15 15:28:46 2017 +0200
loplugin:unusedfields in vcl part3
Change-Id: Iaf76a02a6f85e5bb3e72d0f4804d3cf4601dca64
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114068
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/unx/generic/fontmanager/fontconfig.cxx b/vcl/unx/generic/fontmanager/fontconfig.cxx
index 48428aa4be36..855868a022e4 100644
--- a/vcl/unx/generic/fontmanager/fontconfig.cxx
+++ b/vcl/unx/generic/fontmanager/fontconfig.cxx
@@ -1116,22 +1116,14 @@ std::unique_ptr<FontConfigFontOptions> PrintFontManager::getFontOptions(const Fa
addtopattern(pPattern, rInfo.m_eItalic, rInfo.m_eWeight, rInfo.m_eWidth, rInfo.m_ePitch);
FcPatternAddDouble(pPattern, FC_PIXEL_SIZE, nSize);
- int hintstyle = FC_HINT_FULL;
-
FcConfigSubstitute(pConfig, pPattern, FcMatchPattern);
FontConfigFontOptions::cairo_font_options_substitute(pPattern);
FcDefaultSubstitute(pPattern);
FcResult eResult = FcResultNoMatch;
FcFontSet* pFontSet = rWrapper.getFontSet();
- FcPattern* pResult = FcFontSetMatch( pConfig, &pFontSet, 1, pPattern, &eResult );
- if( pResult )
- {
- (void) FcPatternGetInteger(pResult,
- FC_HINT_STYLE, 0, &hintstyle);
-
+ if (FcPattern* pResult = FcFontSetMatch(pConfig, &pFontSet, 1, pPattern, &eResult))
pOptions.reset(new FontConfigFontOptions(pResult));
- }
// cleanup
FcPatternDestroy( pPattern );
More information about the Libreoffice-commits
mailing list