Correctly mark NullPool const
Saves some more code size as well!
This commit is contained in:
parent
51f4d4d5cd
commit
af3f72f9eb
|
@ -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>
|
||||
|
|
|
@ -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 *
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue