summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-08-18 09:43:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-08-18 16:02:25 +0200
commit65ae6af9f460b1a28f3e07480347ff7f90adae38 (patch)
tree49bfeb1e25724d3b5539b7b5843d38b7531cf65f /xmloff
parentc7d1bb119d88faaafb53d65ad8907ede97d89c8c (diff)
loplugin:unusedvarsglobal
tackle some read-only vars. Mark some of them const to make it obvious they are not really used, and to make the constantparam plugin see more data. Change-Id: Ia25927745866746aa1aa9d5affd5857ad9f9ee24 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100895 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/txtparai.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmloff/source/text/txtparai.cxx b/xmloff/source/text/txtparai.cxx
index 3de864c42434..d438400c4540 100644
--- a/xmloff/source/text/txtparai.cxx
+++ b/xmloff/source/text/txtparai.cxx
@@ -1882,7 +1882,7 @@ XMLParaContext::XMLParaContext(
GetImport().GetTextImport()->GetTextPAttrTokenMap();
bool bHaveXmlId( false );
- OUString aCondStyleName, sClassNames;
+ OUString aCondStyleName;
sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
for( sal_Int16 i=0; i < nAttrCount; i++ )
@@ -1967,8 +1967,6 @@ XMLParaContext::XMLParaContext(
if( !aCondStyleName.isEmpty() )
sStyleName = aCondStyleName;
- else if( !sClassNames.isEmpty() )
- sStyleName = sClassNames.getToken( 0, ' ' );
}
void XMLParaContext::EndElement()