mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 16:31:40 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			44 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| --- a/include/iprt/cpp/xml.h
 | |
| +++ b/include/iprt/cpp/xml.h
 | |
| @@ -100,9 +100,9 @@
 | |
|  class RT_DECL_CLASS XmlError : public RuntimeError
 | |
|  {
 | |
|  public:
 | |
| -    XmlError(xmlErrorPtr aErr);
 | |
| +    XmlError(const xmlError *aErr);
 | |
|  
 | |
| -    static char* Format(xmlErrorPtr aErr);
 | |
| +    static char* Format(const xmlError *aErr);
 | |
|  };
 | |
|  
 | |
|  // Logical errors
 | |
| --- a/src/VBox/Runtime/r3/xml.cpp
 | |
| +++ b/src/VBox/Runtime/r3/xml.cpp
 | |
| @@ -117,7 +117,7 @@
 | |
|      RTStrFree(msg);
 | |
|  }
 | |
|  
 | |
| -XmlError::XmlError(xmlErrorPtr aErr)
 | |
| +XmlError::XmlError(const xmlError *aErr)
 | |
|  {
 | |
|      if (!aErr)
 | |
|          throw EInvalidArg(RT_SRC_POS);
 | |
| @@ -131,7 +131,7 @@
 | |
|   * Composes a single message for the given error. The caller must free the
 | |
|   * returned string using RTStrFree() when no more necessary.
 | |
|   */
 | |
| -/* static */ char *XmlError::Format(xmlErrorPtr aErr)
 | |
| +/* static */ char *XmlError::Format(const xmlError *aErr)
 | |
|  {
 | |
|      const char *msg = aErr->message ? aErr->message : "<none>";
 | |
|      size_t msgLen = strlen(msg);
 | |
| @@ -1837,7 +1837,7 @@
 | |
|      va_end(args);
 | |
|  }
 | |
|  
 | |
| -static void xmlParserBaseStructuredError(void *pCtx, xmlErrorPtr error)
 | |
| +static void xmlParserBaseStructuredError(void *pCtx, const xmlError *error)
 | |
|  {
 | |
|      NOREF(pCtx);
 | |
|      /* we expect that there is always a trailing NL */
 |