summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-10-22 18:25:45 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-10-22 19:30:56 +0200
commit3b079241da281d5e60572c8258d827af67f8f847 (patch)
tree323fcd21d13440a701908c029651cdaacd3fcb92 /vcl
parent7b11cda2aa1f9bd069d81c30021448674a97ce30 (diff)
Revert partly "Simplify vector initialization in vcl"
since it needs 2 allocations instead of one This reverts commit 43a9bf11203ed92096af34ab828501e0218832c7 . Change-Id: I1d8553d9c31f663dd990146e6d375bbbaf32fb27 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124072 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/font/fontcharmap.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/font/fontcharmap.cxx b/vcl/source/font/fontcharmap.cxx
index 72a4feacd36e..90a08d617a86 100644
--- a/vcl/source/font/fontcharmap.cxx
+++ b/vcl/source/font/fontcharmap.cxx
@@ -176,8 +176,9 @@ bool ParseCMAP( const unsigned char* pCmap, int nLength, CmapResult& rResult )
sal_UCS4* pCodePairs = nullptr;
int* pStartGlyphs = nullptr;
- std::vector<sal_uInt16> aGlyphIdArray { 0 };
+ std::vector<sal_uInt16> aGlyphIdArray;
aGlyphIdArray.reserve( 0x1000 );
+ aGlyphIdArray.push_back( 0 );
// format 4, the most common 16bit char mapping table
if( (nFormat == 4) && ((nOffset+16) < nLength) )