File Update-XSLTProcessor.h-for-libxml2-2.12.patch of Package libQtWebKit4

From 034a81c4810f94c9363d83866373764b663e59d2 Mon Sep 17 00:00:00 2001
From: Mark Harfouche <mark.harfouche@gmail.com>
Date: Sun, 14 Jan 2024 17:50:55 -0500
Subject: [PATCH 1/2] Update XSLTProcessor.h for libxml2 2.12

---
 Source/WebCore/xml/XSLTProcessor.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Source/WebCore/xml/XSLTProcessor.h b/Source/WebCore/xml/XSLTProcessor.h
index 1a27b28375dee..c1d8f110c2ae8 100644
--- a/Source/WebCore/xml/XSLTProcessor.h
+++ b/Source/WebCore/xml/XSLTProcessor.h
@@ -67,7 +67,7 @@ class XSLTProcessor : public RefCounted<XSLTProcessor> {
     void reset();
 
 #if !USE(QXMLQUERY)
-    static void parseErrorFunc(void* userData, xmlError*);
+    static void parseErrorFunc(void* userData, const xmlError*);
     static void genericErrorFunc(void* userData, const char* msg, ...);
     
     // Only for libXSLT callbacks

From a2fbc7b24c9172af3be84e4846d267b767fbcec8 Mon Sep 17 00:00:00 2001
From: Mark Harfouche <mark.harfouche@gmail.com>
Date: Sun, 14 Jan 2024 17:51:54 -0500
Subject: [PATCH 2/2] second usage of const

---
 Source/WebCore/xml/XSLTProcessorLibxslt.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Source/WebCore/xml/XSLTProcessorLibxslt.cpp b/Source/WebCore/xml/XSLTProcessorLibxslt.cpp
index ca6f00899396f..296aba6bbc773 100644
--- a/Source/WebCore/xml/XSLTProcessorLibxslt.cpp
+++ b/Source/WebCore/xml/XSLTProcessorLibxslt.cpp
@@ -80,7 +80,7 @@ void XSLTProcessor::genericErrorFunc(void*, const char*, ...)
     // It would be nice to do something with this error message.
 }
 
-void XSLTProcessor::parseErrorFunc(void* userData, xmlError* error)
+void XSLTProcessor::parseErrorFunc(void* userData, const xmlError* error)
 {
     Console* console = static_cast<Console*>(userData);
     if (!console)
openSUSE Build Service is sponsored by