mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-30 01:54:21 +01:00
Correctly mark NullPool const
Saves some more code size as well!
This commit is contained in:
1 parent
51f4d4d5cd
commit
af3f72f9eb
3 files changed
+3
-3
No files matched your search
@@ -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
@@ -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
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user