-Werror,-Wunused-but-set-variable (Clang 13 trunk)

...since the (only) read of sXmlId got removed with
c50357ff625972464d1a591afe4198d3f6f42a39 "loplugin:unusedfields in sw"

Change-Id: I609eae60eb0e1d440a47f97b6387c833c1404518
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116855
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Stephan Bergmann 2021-06-08 17:40:11 +02:00 committed by Noel Grandin
parent a74dab375e
commit e9838a1d1d

View File

@ -802,7 +802,6 @@ SwXMLTableRowContext_Impl::SwXMLTableRowContext_Impl( SwXMLImport& rImport,
nRowRepeat( 1 )
{
OUString aStyleName, aDfltCellStyleName;
OUString sXmlId;
for( auto& aIter : sax_fastparser::castToFastAttributeList(xAttrList) )
{
@ -825,7 +824,6 @@ SwXMLTableRowContext_Impl::SwXMLTableRowContext_Impl( SwXMLImport& rImport,
aDfltCellStyleName = aIter.toString();
break;
case XML_ELEMENT(XML, XML_ID):
sXmlId = aIter.toString();
break;
default:
XMLOFF_WARN_UNKNOWN("sw", aIter);