diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-07 09:12:15 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-08 09:33:45 +0100 |
commit | 950d8b640aa078a8c8fe615b919be809e5da6ee0 (patch) | |
tree | a6e6c8188135ef03c462258b094f30d4e475c1b8 /helpcompiler | |
parent | 2f12d5bb9c97f4f7b46c5a511b71cd670c9c7102 (diff) |
cid#1546501 COPY_INSTEAD_OF_MOVE
and
cid#1546486 COPY_INSTEAD_OF_MOVE
cid#1546485 COPY_INSTEAD_OF_MOVE
cid#1546484 COPY_INSTEAD_OF_MOVE
cid#1546482 COPY_INSTEAD_OF_MOVE
Change-Id: I53cc622f16afc0f57ffd72e3e0a6f18e390fbb83
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160443
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
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 ); |