From 0b032549ba7581c879a0fc4e794b0e9a4723ae85 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 11 Oct 2007 07:24:47 +0000 Subject: [PATCH] Some more cleanup. 2007-10-11 Behdad Esfahbod * pango/opentype/harfbuzz-buffer.c: Some more cleanup. --- src/harfbuzz-buffer.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/harfbuzz-buffer.c b/src/harfbuzz-buffer.c index bca5002ea..382d6b56b 100644 --- a/src/harfbuzz-buffer.c +++ b/src/harfbuzz-buffer.c @@ -111,20 +111,12 @@ hb_buffer_new( HB_Buffer *pbuffer ) if ( ALLOC( buffer, sizeof( HB_BufferRec ) ) ) return error; - /* not these ones */ buffer->allocated = 0; buffer->in_string = NULL; buffer->alt_string = NULL; buffer->positions = NULL; - /* these should be reset when reusing buffer */ - buffer->in_length = 0; - buffer->out_length = 0; - buffer->in_pos = 0; - buffer->out_pos = 0; - buffer->separate_out = FALSE; - buffer->out_string = buffer->in_string; - buffer->max_ligID = 0; + hb_buffer_clear( buffer ); *pbuffer = buffer; @@ -150,6 +142,7 @@ hb_buffer_clear( HB_Buffer buffer ) buffer->out_pos = 0; buffer->out_string = buffer->in_string; buffer->separate_out = FALSE; + buffer->max_ligID = 0; } void