summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-01-08 15:14:32 +0200
committerTor Lillqvist <tml@collabora.com>2014-01-08 19:34:05 +0200
commit57248316be882c65eb6431cbba2ad4f971d86c95 (patch)
tree92f4cd08801a13035dc09bbd76e01dcbb121359b /vcl
parent454b30202498914c133831a20c30f30249eb6c03 (diff)
Fix compilation error for 64-bit OS X by simplifying code
The ifdef for __LP64__ is not needed as far as I can see. Fixes error: cannot initialize a parameter of type 'const sal_GlyphId *' (aka 'const unsigned int *') with an lvalue of type 'long *'. Change-Id: I89d3ba29a5cfd1a89141ec86c873eaf384cf446e
Diffstat (limited to 'vcl')
-rw-r--r--vcl/quartz/salgdicommon.cxx8
1 files changed, 0 insertions, 8 deletions
diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx
index 26d4d3d75fd1..cc453342178e 100644
--- a/vcl/quartz/salgdicommon.cxx
+++ b/vcl/quartz/salgdicommon.cxx
@@ -173,16 +173,8 @@ sal_Bool AquaSalGraphics::CreateFontSubset( const OUString& rToFile,
// make the subsetter provide the requested subset
FILE* pOutFile = fopen( aToFile.getStr(), "wb" );
-#ifdef __LP64__
- long *pLongGlyphIDs = (long*)alloca(nGlyphCount * sizeof(long));
- for (int i = 0; i < nGlyphCount; i++)
- pLongGlyphIDs[i] = pGlyphIds[i];
- bool bRC = rInfo.CreateFontSubset( FontSubsetInfo::TYPE1_PFB, pOutFile, NULL,
- pLongGlyphIDs, pEncoding, nGlyphCount, pGlyphWidths );
-#else
bool bRC = rInfo.CreateFontSubset( FontSubsetInfo::TYPE1_PFB, pOutFile, NULL,
pGlyphIds, pEncoding, nGlyphCount, pGlyphWidths );
-#endif
fclose( pOutFile );
return bRC;
}