[xml] xmlRecoverDoc should take a const xmlChar* ... (?)



Hi all!

xmlDocPtr xmlRecoverDoc (xmlChar * cur) ... takes a non-const xmlChar*

But looking at parser.c (2.6.27) shows that it just calls
xmlDocPtr
xmlRecoverDoc(xmlChar *cur) {
    return(xmlSAXParseDoc(NULL, cur, 1));
}

and xmlSAXParseDoc takes a const xmlChar*


Maybe this should be fixed ...

cheers,
Martin



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]