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/quartz/salgdicommon.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vcl/quartz/salgdicommon.cxx') diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx index 197f4b38f6bf..992db536e7d5 100644 --- a/vcl/quartz/salgdicommon.cxx +++ b/vcl/quartz/salgdicommon.cxx @@ -49,7 +49,7 @@ using namespace vcl; bool AquaSalGraphics::CreateFontSubset( const OUString& rToFile, const vcl::font::PhysicalFontFace* pFontData, const sal_GlyphId* pGlyphIds, const sal_uInt8* pEncoding, - sal_Int32* pGlyphWidths, const int nGlyphCount, + const int nGlyphCount, FontSubsetInfo& rInfo ) { // TODO: move more of the functionality here into the generic subsetter code @@ -71,7 +71,7 @@ bool AquaSalGraphics::CreateFontSubset( const OUString& rToFile, // NOTE: assuming that all glyphids requested on Aqua are fully translated if (bCffOnly) return SalGraphics::CreateCFFfontSubset(aBuffer.data(), aBuffer.size(), aToFile, pGlyphIds, - pEncoding, pGlyphWidths, nGlyphCount, rInfo); + pEncoding, nGlyphCount, rInfo); // TODO: modernize psprint's horrible fontsubset C-API // this probably only makes sense after the switch to another SCM @@ -91,8 +91,8 @@ bool AquaSalGraphics::CreateFontSubset( const OUString& rToFile, // write subset into destination file bool bRet - = SalGraphics::CreateTTFfontSubset(*pSftFont, aToFile, false /* use FontSelectPattern? */, - pGlyphIds, pEncoding, pGlyphWidths, nGlyphCount); + = SalGraphics::CreateTTFfontSubset(*pSftFont, aToFile, + pGlyphIds, pEncoding, nGlyphCount); ::CloseTTFont(pSftFont); return bRet; } -- cgit