webservices: Store xmlbuf encoding as unsigned int.

Avoids enum casts when it's used for reader.
This commit is contained in:
Jacek Caban 2023-10-24 19:45:52 +02:00 committed by Alexandre Julliard
parent 5d7156f10b
commit 88ec915034
2 changed files with 3 additions and 3 deletions

View file

@ -320,7 +320,7 @@ HRESULT WINAPI WsGetHeapProperty( WS_HEAP *handle, WS_HEAP_PROPERTY_ID id, void
}
#define XML_BUFFER_INITIAL_ALLOCATED_SIZE 256
struct xmlbuf *alloc_xmlbuf( WS_HEAP *heap, SIZE_T size, WS_XML_WRITER_ENCODING_TYPE encoding, WS_CHARSET charset,
struct xmlbuf *alloc_xmlbuf( WS_HEAP *heap, SIZE_T size, unsigned int encoding, WS_CHARSET charset,
const WS_XML_DICTIONARY *dict_static, WS_XML_DICTIONARY *dict )
{
struct xmlbuf *ret;

View file

@ -27,7 +27,7 @@ struct xmlbuf
WS_HEAP *heap;
WS_BYTES bytes;
SIZE_T size;
WS_XML_WRITER_ENCODING_TYPE encoding;
unsigned int encoding;
WS_CHARSET charset;
const WS_XML_DICTIONARY *dict_static;
WS_XML_DICTIONARY *dict;
@ -38,7 +38,7 @@ void *ws_alloc_zero( WS_HEAP *, SIZE_T );
void *ws_realloc( WS_HEAP *, void *, SIZE_T, SIZE_T );
void *ws_realloc_zero( WS_HEAP *, void *, SIZE_T, SIZE_T );
void ws_free( WS_HEAP *, void *, SIZE_T );
struct xmlbuf *alloc_xmlbuf( WS_HEAP *, SIZE_T, WS_XML_WRITER_ENCODING_TYPE, WS_CHARSET,
struct xmlbuf *alloc_xmlbuf( WS_HEAP *, SIZE_T, unsigned int, WS_CHARSET,
const WS_XML_DICTIONARY *, WS_XML_DICTIONARY * );
void free_xmlbuf( struct xmlbuf * );