From e9e1ccec47d02dd43c46a6095caa27d19e7f23fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 12 Dec 2016 09:31:23 +0000 Subject: [PATCH] coverity#1397053 Logically dead code (golden) and coverity#1397055 Inferred misuse of enum copy and paste error from the other converted call site I bet Change-Id: I63701db153c5fd424374a95dd757d9fd7a8bc216 --- xmloff/source/text/txtimp.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx index 06da069564ea..c5f411d72494 100644 --- a/xmloff/source/text/txtimp.cxx +++ b/xmloff/source/text/txtimp.cxx @@ -2294,9 +2294,9 @@ SvXMLImportContext *XMLTextImportHelper::CreateTextChildContext( case XML_TOK_TEXT_CHANGE_END: pContext = new XMLChangeImportContext( rImport, nPrefix, rLocalName, - ((nToken == XML_TOK_TEXTP_CHANGE_END) + ((nToken == XML_TOK_TEXT_CHANGE_END) ? XMLChangeImportContext::Element::END - : (nToken == XML_TOK_TEXTP_CHANGE_START) + : (nToken == XML_TOK_TEXT_CHANGE_START) ? XMLChangeImportContext::Element::START : XMLChangeImportContext::Element::POINT), true);