Correctly mark NullPool const

Saves some more code size as well!
This commit is contained in:
Behdad Esfahbod committed 2017-10-27 15:14:44 -06:00
1 parent 51f4d4d5cd
commit af3f72f9eb
3 files changed
+3 -3

No files matched your search

+1 -1
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>
+1 -1
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 *
+1 -1
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)