diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-20 09:01:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-22 06:47:35 +0000 |
commit | 7299481834b15c920f996f4b0f3b5f821a82a10d (patch) | |
tree | 6cbc8a64399046dd2c83e4a4ef778c65ec00a34a /xmloff/source | |
parent | e9c7d259e8ed3144d4226aef7c3de351e4706b79 (diff) |
loplugin:redundantcast find redundant c-style enum casts
Change-Id: I2dab376d87804521aed6b6bd41ad7762830fa349
Reviewed-on: https://gerrit.libreoffice.org/35467
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/text/XMLTextMarkImportContext.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/text/XMLTextMarkImportContext.cxx b/xmloff/source/text/XMLTextMarkImportContext.cxx index 58a0e1092ea7..b73ae0166d6b 100644 --- a/xmloff/source/text/XMLTextMarkImportContext.cxx +++ b/xmloff/source/text/XMLTextMarkImportContext.cxx @@ -213,7 +213,7 @@ void XMLTextMarkImportContext::EndElement() case TypeFieldmark: { const char *formFieldmarkName=lcl_getFormFieldmarkName(m_sFieldName); - bool bImportAsField=((lcl_MarkType)nTmp==TypeFieldmark && formFieldmarkName!=nullptr); //@TODO handle abbreviation cases.. + bool bImportAsField = (nTmp==TypeFieldmark && formFieldmarkName!=nullptr); //@TODO handle abbreviation cases.. // export point bookmark const Reference<XInterface> xContent( CreateAndInsertMark(GetImport(), @@ -221,7 +221,7 @@ void XMLTextMarkImportContext::EndElement() m_sBookmarkName, m_rHelper.GetCursorAsRange()->getStart(), m_sXmlId) ); - if ((lcl_MarkType)nTmp==TypeFieldmark) { + if (nTmp==TypeFieldmark) { if (xContent.is() && bImportAsField) { // setup fieldmark... Reference< css::text::XFormField> xFormField(xContent, UNO_QUERY); @@ -311,7 +311,7 @@ void XMLTextMarkImportContext::EndElement() // create a file with subsequence // start/end elements - bool bImportAsField=((lcl_MarkType)nTmp==TypeFieldmarkEnd && m_rHelper.hasCurrentFieldCtx()); + bool bImportAsField = (nTmp==TypeFieldmarkEnd && m_rHelper.hasCurrentFieldCtx()); // fdo#86795 check if it's actually a checkbox first bool isInvalid(false); @@ -349,7 +349,7 @@ void XMLTextMarkImportContext::EndElement() } } - if ((lcl_MarkType)nTmp==TypeFieldmarkEnd) { + if (nTmp==TypeFieldmarkEnd) { if (xContent.is() && bImportAsField) { // setup fieldmark... Reference< css::text::XFormField> xFormField(xContent, UNO_QUERY); |