summaryrefslogtreecommitdiff
path: root/sw/source/filter
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-08-26 18:42:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-08-26 22:03:25 +0200
commitcac7ad2d011eb6602b6c9702dddb76d129f093c8 (patch)
treec00407e8a0348d56ddefa990fc4193f03ee708c0 /sw/source/filter
parenta387bf54a944212cff94dbd1182bb55ab39a4324 (diff)
remove always true conditon
Change-Id: Ifc75e7361f67b716fcfc3ed8e55fbb4b2e126ae5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101421 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter')
-rw-r--r--sw/source/filter/xml/xmlimpit.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/xml/xmlimpit.cxx b/sw/source/filter/xml/xmlimpit.cxx
index 4d6cc1b7b321..543d3ba90c59 100644
--- a/sw/source/filter/xml/xmlimpit.cxx
+++ b/sw/source/filter/xml/xmlimpit.cxx
@@ -56,7 +56,7 @@ using namespace ::com::sun::star;
using namespace ::xmloff::token;
using uno::Any;
-const sal_uInt16 nUnknownWhich = RES_UNKNOWNATR_CONTAINER;
+constexpr sal_uInt16 nUnknownWhich = RES_UNKNOWNATR_CONTAINER;
SvXMLImportItemMapper::SvXMLImportItemMapper(
SvXMLItemMapEntriesRef const & rMapEntries ) :
@@ -146,7 +146,7 @@ void SvXMLImportItemMapper::importXML( SfxItemSet& rSet,
rNamespaceMap );
}
}
- else if (USHRT_MAX != nUnknownWhich && !aLocalName.isEmpty())
+ else if (!aLocalName.isEmpty())
{
if( !pUnknownItem )
{