summaryrefslogtreecommitdiff
path: root/helpcompiler
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-03 19:46:33 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-04 10:47:42 +0100
commit7f713779949a2d971da3f1c327429cdd3cbe2a95 (patch)
treede88b2b4f9f50914d200bc5be0658f0b15dc58f0 /helpcompiler
parent3bf1c0d23afccaa84c3d4ecd701c20e60f9e2994 (diff)
cid#1546485 COPY_INSTEAD_OF_MOVE
Change-Id: Id8ef4ab026e00a34f4ac2280becef35faa98a0e1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160274 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'helpcompiler')
-rw-r--r--helpcompiler/source/HelpLinker.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx
index 898a8b26392a..f585a4d33d6a 100644
--- a/helpcompiler/source/HelpLinker.cxx
+++ b/helpcompiler/source/HelpLinker.cxx
@@ -826,8 +826,7 @@ static void StructuredXMLErrorFunction(SAL_UNUSED_PARAMETER void *, xmlErrorPtr
if( error->file != nullptr )
aXMLParsingFile = error->file;
int nXMLParsingLine = error->line;
- HelpProcessingException* pException = new HelpProcessingException( aErrorMsg, aXMLParsingFile, nXMLParsingLine );
- GpXMLParsingException = pException;
+ GpXMLParsingException = new HelpProcessingException( aErrorMsg, aXMLParsingFile, nXMLParsingLine );
// Reset error handler
xmlSetStructuredErrorFunc( nullptr, nullptr );