diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-12-12 09:31:23 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-12-12 09:31:52 +0000 |
commit | e9e1ccec47d02dd43c46a6095caa27d19e7f23fb (patch) | |
tree | 2ccd7a17a90bf83e904503e61c26511af61e00b2 /xmloff | |
parent | 299c5f87aeef5670e88ab226d9cf9825165d8705 (diff) |
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
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/txtimp.cxx | 4 |
1 files 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); |