mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-28 00:59:16 +01:00
[vector] Rename
This commit is contained in:
1 parent
ba38378fd4
commit
690d9eb83d
1 file changed
+3
-3
+3
-3
@@ -31,13 +31,13 @@
|
||||
#include "hb.hh"
|
||||
|
||||
|
||||
template <typename Type, unsigned int StaticSize=8>
|
||||
template <typename Type, unsigned int PreallocedCount=8>
|
||||
struct hb_vector_t
|
||||
{
|
||||
typedef Type ItemType;
|
||||
enum { item_size = sizeof (Type) };
|
||||
|
||||
HB_NO_COPY_ASSIGN_TEMPLATE2 (hb_vector_t, Type, StaticSize);
|
||||
HB_NO_COPY_ASSIGN_TEMPLATE2 (hb_vector_t, Type, PreallocedCount);
|
||||
inline hb_vector_t (void) { init (); }
|
||||
inline ~hb_vector_t (void) { fini (); }
|
||||
|
||||
@@ -45,7 +45,7 @@ struct hb_vector_t
|
||||
private:
|
||||
unsigned int allocated; /* == 0 means allocation failed. */
|
||||
Type *arrayZ_;
|
||||
Type static_array[StaticSize];
|
||||
Type static_array[PreallocedCount];
|
||||
public:
|
||||
|
||||
void init (void)
|
||||
|
||||
Reference in new issue
Block a user