Changeset 104176 in vbox
- Timestamp:
- Apr 5, 2024 12:20:42 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/xml.cpp
r103439 r104176 1872 1872 } 1873 1873 1874 #if LIBXML_VERSION >= 21206 1875 static void xmlStructuredErrorFunc(void *userData, const xmlError *error) RT_NOTHROW_DEF 1876 { 1877 NOREF(userData); 1878 NOREF(error); 1879 } 1880 #else 1874 1881 static void xmlParserBaseStructuredError(void *pCtx, xmlErrorPtr error) RT_NOTHROW_DEF 1875 1882 { … … 1878 1885 LogRel(("XML error at '%s' line %d: %s", error->file, error->line, error->message)); 1879 1886 } 1887 #endif 1880 1888 1881 1889 XmlParserBase::XmlParserBase() … … 1886 1894 /* per-thread so it must be here */ 1887 1895 xmlSetGenericErrorFunc(NULL, xmlParserBaseGenericError); 1896 #if LIBXML_VERSION >= 21206 1897 xmlSetStructuredErrorFunc(NULL, xmlStructuredErrorFunc); 1898 #else 1888 1899 xmlSetStructuredErrorFunc(NULL, xmlParserBaseStructuredError); 1900 #endif 1889 1901 } 1890 1902 … … 1947 1959 NULL, // encoding = auto 1948 1960 options))) 1949 throw XmlError( xmlCtxtGetLastError(m_ctxt));1961 throw XmlError((xmlErrorPtr)xmlCtxtGetLastError(m_ctxt)); 1950 1962 1951 1963 doc.refreshInternals(); … … 2207 2219 NULL, // encoding = auto 2208 2220 options))) 2209 throw XmlError( xmlCtxtGetLastError(m_ctxt));2221 throw XmlError((xmlErrorPtr)xmlCtxtGetLastError(m_ctxt)); 2210 2222 2211 2223 doc.refreshInternals();
Note:
See TracChangeset
for help on using the changeset viewer.