void-packages/srcpkgs/electron24/patches/libxml2.patch

23 lines
955 B
Diff

--- a/src/third_party/blink/renderer/core/xml/xslt_processor.h
+++ b/src/third_party/blink/renderer/core/xml/xslt_processor.h
@@ -77,7 +77,7 @@ class XSLTProcessor final : public Scrip
void reset();
- static void ParseErrorFunc(void* user_data, xmlError*);
+ static void ParseErrorFunc(void* user_data, const xmlError*);
static void GenericErrorFunc(void* user_data, const char* msg, ...);
// Only for libXSLT callbacks
--- a/src/third_party/blink/renderer/core/xml/xslt_processor_libxslt.cc
+++ b/src/third_party/blink/renderer/core/xml/xslt_processor_libxslt.cc
@@ -65,7 +65,7 @@ void XSLTProcessor::GenericErrorFunc(voi
// It would be nice to do something with this error message.
}
-void XSLTProcessor::ParseErrorFunc(void* user_data, xmlError* error) {
+void XSLTProcessor::ParseErrorFunc(void* user_data, const xmlError* error) {
FrameConsole* console = static_cast<FrameConsole*>(user_data);
if (!console)
return;