From 394655636307de3ba3c4b2d52f3c1abf4b900e18 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Mon, 5 Sep 2022 22:36:20 +0200 Subject: vcl: Drop unused SalGraphics::CreateFontSubset() argument MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pWidths is always nullptr. Change-Id: I1c666f146865786269e9513cbb6c8ffdc7df96e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139461 Tested-by: Jenkins Reviewed-by: خالد حسني --- vcl/qt5/QtGraphics_Text.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'vcl/qt5') diff --git a/vcl/qt5/QtGraphics_Text.cxx b/vcl/qt5/QtGraphics_Text.cxx index 2ee3d9a71569..c8c59bc48cc3 100644 --- a/vcl/qt5/QtGraphics_Text.cxx +++ b/vcl/qt5/QtGraphics_Text.cxx @@ -226,7 +226,7 @@ const sal_uInt8* QtTrueTypeFont::table(sal_uInt32 ord, sal_uInt32& size) const bool QtGraphics::CreateFontSubset(const OUString& rToFile, const vcl::font::PhysicalFontFace* pFontFace, const sal_GlyphId* pGlyphIds, const sal_uInt8* pEncoding, - sal_Int32* pGlyphWidths, int nGlyphCount, FontSubsetInfo& rInfo) + int nGlyphCount, FontSubsetInfo& rInfo) { OUString aSysPath; if (osl_File_E_None != osl_getSystemPathFromFileURL(rToFile.pData, &aSysPath.pData)) @@ -243,7 +243,7 @@ bool QtGraphics::CreateFontSubset(const OUString& rToFile, if (!aCFFtable.isEmpty()) return SalGraphics::CreateCFFfontSubset( reinterpret_cast(aCFFtable.data()), aCFFtable.size(), aToFile, - pGlyphIds, pEncoding, pGlyphWidths, nGlyphCount, rInfo); + pGlyphIds, pEncoding, nGlyphCount, rInfo); // fill details about the subsetted font rInfo.m_nFontType = FontType::SFNT_TTF; @@ -258,8 +258,7 @@ bool QtGraphics::CreateFontSubset(const OUString& rToFile, if (GetTTGlobalFontHeadInfo(&aTTF, nXmin, nYmin, nXmax, nYmax, nMacStyleFlags)) rInfo.m_aFontBBox = tools::Rectangle(Point(nXmin, nYmin), Point(nXmax, nYmax)); - return SalGraphics::CreateTTFfontSubset(aTTF, aToFile, false /* use FontSelectPattern? */, - pGlyphIds, pEncoding, pGlyphWidths, nGlyphCount); + return SalGraphics::CreateTTFfontSubset(aTTF, aToFile, pGlyphIds, pEncoding, nGlyphCount); } const void* QtGraphics::GetEmbedFontData(const vcl::font::PhysicalFontFace*, -- cgit