Silence Codacy

This commit is contained in:
Michiharu Ariza 2018-08-06 10:44:12 -07:00
parent 5561b81849
commit 9fae33b9f3
3 changed files with 9 additions and 4 deletions

1
build/CMakeCache.txt Normal file
View File

@ -0,0 +1 @@

View File

@ -76,7 +76,8 @@ hb_plan_subset_cff_fdselect (const hb_vector_t<hb_codepoint_t> &glyphs,
}
}
if (set->get_population () == fdCount)
subset_fd_count = set->get_population ();
if (subset_fd_count == fdCount)
{
/* all font dicts belong to the subset. no need to subset FDSelect & FDArray */
hb_set_destroy (set);
@ -88,9 +89,10 @@ hb_plan_subset_cff_fdselect (const hb_vector_t<hb_codepoint_t> &glyphs,
for (unsigned int i = 0; i < fdmap.len; i++)
fdmap[i] = HB_SET_VALUE_INVALID;
hb_codepoint_t fd = HB_SET_VALUE_INVALID;
unsigned int fdindex = 0;
while (set->next (&fd))
fdmap[fd] = subset_fd_count++;
assert (subset_fd_count == set->get_population ());
fdmap[fd] = fdindex++;
assert (fdindex == subset_fd_count);
hb_set_destroy (set);
}

View File

@ -146,7 +146,9 @@ struct CFF2PrivateDict_OpSerializer : OpSerializer
struct subset_plan {
inline subset_plan (void)
: final_size (0),
subst_fdcount(1)
orig_fdcount (0),
subst_fdcount(1),
subst_fdselect_format (0)
{
subst_fdselect_first_glyphs.init ();
fdmap.init ();