Minor const correctness shuffling
This commit is contained in:
parent
6411e74caf
commit
97aa0b738a
|
@ -68,13 +68,13 @@ static const struct hb_shaper_pair_t {
|
||||||
|
|
||||||
/* Thread-safe, lock-free, shapers */
|
/* Thread-safe, lock-free, shapers */
|
||||||
|
|
||||||
static hb_shaper_pair_t *static_shapers;
|
static const hb_shaper_pair_t *static_shapers;
|
||||||
|
|
||||||
static
|
static
|
||||||
void free_static_shapers (void)
|
void free_static_shapers (void)
|
||||||
{
|
{
|
||||||
if (unlikely (static_shapers != all_shapers))
|
if (unlikely (static_shapers != all_shapers))
|
||||||
free (static_shapers);
|
free ((void *) static_shapers);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const hb_shaper_pair_t *
|
static const hb_shaper_pair_t *
|
||||||
|
@ -87,7 +87,7 @@ retry:
|
||||||
{
|
{
|
||||||
char *env = getenv ("HB_SHAPER_LIST");
|
char *env = getenv ("HB_SHAPER_LIST");
|
||||||
if (!env || !*env) {
|
if (!env || !*env) {
|
||||||
(void) hb_atomic_ptr_cmpexch (&static_shapers, NULL, (const hb_shaper_pair_t *) all_shapers);
|
(void) hb_atomic_ptr_cmpexch (&static_shapers, NULL, &all_shapers[0]);
|
||||||
return (const hb_shaper_pair_t *) all_shapers;
|
return (const hb_shaper_pair_t *) all_shapers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue