diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-18 13:10:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-18 14:19:20 +0200 |
commit | 256c28ae3354d49d0e2ebdf11ef2a64da7954f68 (patch) | |
tree | cd12a01a9a6fa72f874ffe053d441cb0e2e4fa91 /sw | |
parent | 6e1d959a2e890004be5be259610033210d18f7cd (diff) |
new loplugin:expressionalwayszero
The code in SvXMLExportItemMapper::exportXML was broken as far back as
its introduction in
commit 0c28e3c480a95c03b513c55f029b979bcd9c0401
"Move SvXMLAttrContainerItem to SVX, moved writer only code to sw"
Change-Id: I90043ce8b7263aa56fd0883d350e29b97eeaf99b
Reviewed-on: https://gerrit.libreoffice.org/41282
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/xml/xmlexpit.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/filter/xml/xmlexpit.cxx b/sw/source/filter/xml/xmlexpit.cxx index 541b31826414..2657e61e1e90 100644 --- a/sw/source/filter/xml/xmlexpit.cxx +++ b/sw/source/filter/xml/xmlexpit.cxx @@ -297,9 +297,7 @@ void SvXMLExportItemMapper::exportXML( SvXMLExport& rExport, exportXML( rExport, rExport.GetAttrList(), rSet, rUnitConverter, rExport.GetNamespaceMap(), nFlags, &aIndexArray ); - if( rExport.GetAttrList().getLength() > 0 || - (nFlags & SvXmlExportFlags::EMPTY) || - !aIndexArray.empty() ) + if( rExport.GetAttrList().getLength() > 0 || !aIndexArray.empty() ) { if( (nFlags & SvXmlExportFlags::IGN_WS) ) { |