diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-25 17:00:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-29 08:21:07 +0200 |
commit | 03841dc12ff3ee65ca632039418c65bbfd5ccaea (patch) | |
tree | 87149cd102235117ca884404ffe83034c90d59ca /xmloff/source/text/txtvfldi.cxx | |
parent | d7c2667089535d25b8f0ad4f58810ee54552156b (diff) |
loplugin:unusedfields-in-constructor in xmloff
fields that are only referenced in the constructor
Change-Id: I44bddb2dce2f30c21ea0f1ada4c1615c854d3334
Reviewed-on: https://gerrit.libreoffice.org/54823
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/text/txtvfldi.cxx')
-rw-r--r-- | xmloff/source/text/txtvfldi.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmloff/source/text/txtvfldi.cxx b/xmloff/source/text/txtvfldi.cxx index b45ffe132f47..78c9780bf6dc 100644 --- a/xmloff/source/text/txtvfldi.cxx +++ b/xmloff/source/text/txtvfldi.cxx @@ -712,8 +712,11 @@ XMLVariableDeclImportContext::XMLVariableDeclImportContext( SvXMLImportContext(rImport, nPrfx, rLocalName), // bug?? which properties for userfield/userfieldmaster aValueHelper(rImport, rHlp, true, false, true, false), - nNumLevel(-1), cSeparationChar('.') + cSeparationChar('.') { + sal_Int8 nNumLevel(-1); + OUString sName; + if ( (XML_NAMESPACE_TEXT == nPrfx) && ( ( IsXMLToken( rLocalName, XML_SEQUENCE_DECL )) || ( IsXMLToken( rLocalName, XML_VARIABLE_DECL)) || |