[subset/colr] minor improve to resolve msvc complain
MSVC says, hb-ot-color-colr-table.hh(215): warning C4700: uninitialized local variable 'new_record' used [build\harfbuzz-subset.vcxproj] harfbuzz-subset.vcxproj -> build\Debug\harfbuzz-subset.lib
This commit is contained in:
parent
bca9bc6b92
commit
cbb45c3ee7
|
@ -208,12 +208,12 @@ struct COLR
|
||||||
| hb_map_retains_sorting ([&](hb_codepoint_t new_gid)
|
| hb_map_retains_sorting ([&](hb_codepoint_t new_gid)
|
||||||
{
|
{
|
||||||
hb_codepoint_t old_gid = reverse_glyph_map.get (new_gid);
|
hb_codepoint_t old_gid = reverse_glyph_map.get (new_gid);
|
||||||
|
|
||||||
const BaseGlyphRecord* old_record = get_base_glyph_record (old_gid);
|
const BaseGlyphRecord* old_record = get_base_glyph_record (old_gid);
|
||||||
|
if (unlikely (!old_record))
|
||||||
|
return hb_pair_t<bool, BaseGlyphRecord> (false, Null (BaseGlyphRecord));
|
||||||
|
|
||||||
BaseGlyphRecord new_record;
|
BaseGlyphRecord new_record;
|
||||||
if (unlikely (!old_record))
|
|
||||||
return hb_pair_t<bool, BaseGlyphRecord> (false, new_record);
|
|
||||||
|
|
||||||
new_record.glyphId = new_gid;
|
new_record.glyphId = new_gid;
|
||||||
new_record.numLayers = old_record->numLayers;
|
new_record.numLayers = old_record->numLayers;
|
||||||
return hb_pair_t<bool, BaseGlyphRecord> (true, new_record);
|
return hb_pair_t<bool, BaseGlyphRecord> (true, new_record);
|
||||||
|
|
Loading…
Reference in New Issue