xmllite: Constify some character strings
Frédéric Delanoy
frederic.delanoy at gmail.com
Wed Dec 18 16:14:16 CST 2013
---
dlls/xmllite/reader.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/xmllite/reader.c b/dlls/xmllite/reader.c
index 9ca7370..0ecb593 100644
--- a/dlls/xmllite/reader.c
+++ b/dlls/xmllite/reader.c
@@ -729,8 +729,8 @@ static void readerinput_grow(xmlreaderinput *readerinput, int length)
static inline BOOL readerinput_is_utf8(xmlreaderinput *readerinput)
{
- static char startA[] = {'<','?'};
- static char commentA[] = {'<','!'};
+ static const char startA[] = {'<','?'};
+ static const char commentA[] = {'<','!'};
encoded_buffer *buffer = &readerinput->buffer->encoded;
unsigned char *ptr = (unsigned char*)buffer->data;
@@ -749,10 +749,10 @@ static inline BOOL readerinput_is_utf8(xmlreaderinput *readerinput)
static HRESULT readerinput_detectencoding(xmlreaderinput *readerinput, xml_encoding *enc)
{
encoded_buffer *buffer = &readerinput->buffer->encoded;
- static WCHAR startW[] = {'<','?'};
- static WCHAR commentW[] = {'<','!'};
- static char utf8bom[] = {0xef,0xbb,0xbf};
- static char utf16lebom[] = {0xff,0xfe};
+ static const WCHAR startW[] = {'<','?'};
+ static const WCHAR commentW[] = {'<','!'};
+ static const char utf8bom[] = {0xef,0xbb,0xbf};
+ static const char utf16lebom[] = {0xff,0xfe};
*enc = XmlEncoding_Unknown;
--
1.8.5
More information about the wine-patches
mailing list