projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf91b41
)
[name] Use variable forwarding to simplify sanitize()
author
Behdad Esfahbod
<behdad@behdad.org>
Thu, 2 May 2019 21:45:57 +0000
(14:45 -0700)
committer
Behdad Esfahbod
<behdad@behdad.org>
Thu, 2 May 2019 21:45:57 +0000
(14:45 -0700)
src/hb-ot-name-table.hh
patch
|
blob
|
history
diff --git
a/src/hb-ot-name-table.hh
b/src/hb-ot-name-table.hh
index
a15981c
..
91a5214
100644
(file)
--- a/
src/hb-ot-name-table.hh
+++ b/
src/hb-ot-name-table.hh
@@
-306,11
+306,8
@@
struct name
{
TRACE_SANITIZE (this);
const void *string_pool = (this+stringOffset).arrayZ;
- unsigned int _count = count;
- /* Move to run-time?! */
- for (unsigned int i = 0; i < _count; i++)
- if (!nameRecordZ[i].sanitize (c, string_pool)) return_trace (false);
- return_trace (true);
+ /* TODO: Move to run-time?! */
+ return_trace (nameRecordZ.sanitize (c, count, string_pool));
}
bool sanitize (hb_sanitize_context_t *c) const