diff options
Diffstat (limited to 'helpcompiler')
-rw-r--r-- | helpcompiler/source/HelpLinker.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx index f585a4d33d6a..b99061d0dd7f 100644 --- a/helpcompiler/source/HelpLinker.cxx +++ b/helpcompiler/source/HelpLinker.cxx @@ -821,12 +821,11 @@ static void StructuredXMLErrorFunction(SAL_UNUSED_PARAMETER void *, const xmlErr static void StructuredXMLErrorFunction(SAL_UNUSED_PARAMETER void *, xmlErrorPtr error) #endif { - std::string aErrorMsg = error->message; std::string aXMLParsingFile; if( error->file != nullptr ) aXMLParsingFile = error->file; int nXMLParsingLine = error->line; - GpXMLParsingException = new HelpProcessingException( aErrorMsg, aXMLParsingFile, nXMLParsingLine ); + GpXMLParsingException = new HelpProcessingException(error->message, aXMLParsingFile, nXMLParsingLine); // Reset error handler xmlSetStructuredErrorFunc( nullptr, nullptr ); |