Correctly mark NullPool const

Saves some more code size as well!
This commit is contained in:
Behdad Esfahbod 2017-10-27 15:13:50 -06:00
parent 51f4d4d5cd
commit af3f72f9eb
3 changed files with 3 additions and 3 deletions

View File

@ -133,7 +133,7 @@ static inline Type& StructAfter(TObject &X)
#define HB_NULL_POOL_SIZE 264
static_assert (HB_NULL_POOL_SIZE % sizeof (void *) == 0, "Align HB_NULL_POOL_SIZE.");
extern HB_INTERNAL const void *_hb_NullPool[HB_NULL_POOL_SIZE / sizeof (void *)];
extern HB_INTERNAL const void * const _hb_NullPool[HB_NULL_POOL_SIZE / sizeof (void *)];
/* Generic nul-content Null objects. */
template <typename Type>

View File

@ -39,7 +39,7 @@
#include "hb-ot-map-private.hh"
const void *OT::_hb_NullPool[HB_NULL_POOL_SIZE / sizeof (void *)];
const void * const OT::_hb_NullPool[HB_NULL_POOL_SIZE / sizeof (void *)] = {};
hb_ot_layout_t *

View File

@ -38,7 +38,7 @@
using namespace OT;
const void *OT::_hb_NullPool[HB_NULL_POOL_SIZE / sizeof (void *)];
const void * const OT::_hb_NullPool[HB_NULL_POOL_SIZE / sizeof (void *)] = {};
int
main (int argc, char **argv)