1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-27 12:15:34 +03:00

Make xmlRecoverDoc const (Martin Trappel)

* include/libxml/parser.h parser.c: just make the parameter a const
This commit is contained in:
Daniel Veillard
2009-08-20 19:15:08 +02:00
parent 2f522dc68f
commit f39eafaa90
2 changed files with 2 additions and 2 deletions

View File

@@ -850,7 +850,7 @@ XMLPUBFUN int XMLCALL
* Recovery mode * Recovery mode
*/ */
XMLPUBFUN xmlDocPtr XMLCALL XMLPUBFUN xmlDocPtr XMLCALL
xmlRecoverDoc (xmlChar *cur); xmlRecoverDoc (const xmlChar *cur);
XMLPUBFUN xmlDocPtr XMLCALL XMLPUBFUN xmlDocPtr XMLCALL
xmlRecoverMemory (const char *buffer, xmlRecoverMemory (const char *buffer,
int size); int size);

View File

@@ -13406,7 +13406,7 @@ xmlSAXParseFile(xmlSAXHandlerPtr sax, const char *filename,
*/ */
xmlDocPtr xmlDocPtr
xmlRecoverDoc(xmlChar *cur) { xmlRecoverDoc(const xmlChar *cur) {
return(xmlSAXParseDoc(NULL, cur, 1)); return(xmlSAXParseDoc(NULL, cur, 1));
} }