[libxml2] Fix const qualifyer to definition of xmlBufferDetach



commit 3b666224623d7b9dc7855073fe0bad7d4a90ff93
Author: Daniel Veillard <veillard redhat com>
Date:   Mon Aug 13 17:49:15 2012 +0800

    Fix const qualifyer to definition of xmlBufferDetach
    
    For https://bugzilla.gnome.org/show_bug.cgi?id=676629
    As the buffer is beng mdified by the call the const doesn't make
    sense.

 include/libxml/tree.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/include/libxml/tree.h b/include/libxml/tree.h
index 8f4e28a..967748a 100644
--- a/include/libxml/tree.h
+++ b/include/libxml/tree.h
@@ -732,7 +732,7 @@ XMLPUBFUN void XMLCALL
 XMLPUBFUN const xmlChar* XMLCALL	
 		xmlBufferContent	(const xmlBufferPtr buf);
 XMLPUBFUN xmlChar* XMLCALL
-		xmlBufferDetach         (const xmlBufferPtr buf);
+		xmlBufferDetach         (xmlBufferPtr buf);
 XMLPUBFUN void XMLCALL		
 		xmlBufferSetAllocationScheme(xmlBufferPtr buf,
 					 xmlBufferAllocationScheme scheme);



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