summaryrefslogtreecommitdiff
path: root/pango/pangocoretext.c
diff options
context:
space:
mode:
authorKristian Rietveld <kris@loopnest.org>2015-09-05 22:58:28 +0200
committerKristian Rietveld <kris@loopnest.org>2016-04-24 11:47:17 +0200
commit550fba61eea3cae292d4b2abbffbe8a7a99a50b4 (patch)
tree1862d53734484d3d203118cb63a80249fd577e34 /pango/pangocoretext.c
parent783544ddfc23225f894a26eb31fcc4bc3990ce22 (diff)
downloadpango-550fba61eea3cae292d4b2abbffbe8a7a99a50b4.tar.gz
coretext: remove useless calls to pango_coverage_set()
Since Pango coverage is initialized to PANGO_COVERAGE_NONE, it makes no sense to perform calls to pango_coverage_set for characters that will be set (or rather left) to none.
Diffstat (limited to 'pango/pangocoretext.c')
-rw-r--r--pango/pangocoretext.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/pango/pangocoretext.c b/pango/pangocoretext.c
index 0f5c1478..b8f79aeb 100644
--- a/pango/pangocoretext.c
+++ b/pango/pangocoretext.c
@@ -107,9 +107,8 @@ ct_font_descriptor_get_coverage (CTFontDescriptorRef desc)
int j;
for (j = 0; j < 8; j++)
- pango_coverage_set (coverage, i * 8 + j,
- ((ptr[i] & (1 << j)) == (1 << j)) ?
- PANGO_COVERAGE_EXACT : PANGO_COVERAGE_NONE);
+ if ((ptr[i] & (1 << j)) == (1 << j))
+ pango_coverage_set (coverage, i * 8 + j, PANGO_COVERAGE_EXACT);
}
CFRelease (bitmap);