1 --- VirtualBox-7.0.12/include/iprt/cpp/xml.h.orig 2023-12-24 15:42:18.092685383 +0100
2 +++ VirtualBox-7.0.12/include/iprt/cpp/xml.h 2023-12-24 15:46:14.872125732 +0100
4 class RT_DECL_CLASS XmlError : public RuntimeError
7 - XmlError(xmlErrorPtr aErr);
8 + XmlError(const xmlError* aErr);
10 - static char* Format(xmlErrorPtr aErr);
11 + static char* Format(const xmlError* aErr);
15 --- VirtualBox-7.0.12/src/VBox/Runtime/r3/xml.cpp.orig 2023-12-24 15:31:18.385556729 +0100
16 +++ VirtualBox-7.0.12/src/VBox/Runtime/r3/xml.cpp 2023-12-24 15:46:31.679225463 +0100
21 -XmlError::XmlError(xmlErrorPtr aErr)
22 +XmlError::XmlError(const xmlError* aErr)
25 throw EInvalidArg(RT_SRC_POS);
27 * Composes a single message for the given error. The caller must free the
28 * returned string using RTStrFree() when no more necessary.
30 -/* static */ char *XmlError::Format(xmlErrorPtr aErr)
31 +/* static */ char *XmlError::Format(const xmlError *aErr)
33 const char *msg = aErr->message ? aErr->message : "<none>";
34 size_t msgLen = strlen(msg);
39 -static void xmlParserBaseStructuredError(void *pCtx, xmlErrorPtr error) RT_NOTHROW_DEF
40 +static void xmlParserBaseStructuredError(void *pCtx, const xmlError* error) RT_NOTHROW_DEF
43 /* we expect that there is always a trailing NL */