diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-15 11:42:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-16 08:24:49 +0200 |
commit | 83f9325f0d8d643d8b3e71fa3ff76ebbd599373d (patch) | |
tree | ae330b657da35b82964cfac41f16e69acbc7c5b5 /xmloff/source/text | |
parent | 9e425891f79a834abb03e3d69ee0c3665944faaa (diff) |
loplugin:unusedfields xmlhelp..xmlsecurity
Change-Id: I7e680e1913c787ce0adad5be1f84668d57ad00b3
Reviewed-on: https://gerrit.libreoffice.org/38821
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/text')
-rw-r--r-- | xmloff/source/text/txtfldi.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/txtvfldi.cxx | 12 |
2 files changed, 0 insertions, 14 deletions
diff --git a/xmloff/source/text/txtfldi.cxx b/xmloff/source/text/txtfldi.cxx index 308ea75fc69e..392bfecf34a7 100644 --- a/xmloff/source/text/txtfldi.cxx +++ b/xmloff/source/text/txtfldi.cxx @@ -3503,7 +3503,6 @@ XMLScriptImportContext::XMLScriptImportContext( const OUString& sLocalName) : XMLTextFieldImportContext(rImport, rHlp, "Script", nPrfx, sLocalName) , bContentOK(false) -, bScriptTypeOK(false) { } @@ -3520,7 +3519,6 @@ void XMLScriptImportContext::ProcessAttribute( case XML_TOK_TEXTFIELD_LANGUAGE: sScriptType = sAttrValue; - bScriptTypeOK = true; break; default: diff --git a/xmloff/source/text/txtvfldi.cxx b/xmloff/source/text/txtvfldi.cxx index 6825a737cccf..7285cf132e33 100644 --- a/xmloff/source/text/txtvfldi.cxx +++ b/xmloff/source/text/txtvfldi.cxx @@ -88,7 +88,6 @@ XMLVarFieldImportContext::XMLVarFieldImportContext( aValueHelper(rImport, rHlp, bType, bStyle, bValue, false), bDisplayFormula(false), bDisplayNone(false), - bNameOK(false), bFormulaOK(false), bDescriptionOK(false), bHelpOK(false), @@ -113,7 +112,6 @@ void XMLVarFieldImportContext::ProcessAttribute( { case XML_TOK_TEXTFIELD_NAME: sName = sAttrValue; - bNameOK = true; bValid = true; // we assume: field with name is valid! break; case XML_TOK_TEXTFIELD_DESCRIPTION: @@ -1104,9 +1102,7 @@ XMLValueImportHelper::XMLValueImportHelper( bStringType(false), bFormatOK(false), - bTypeOK(false), bStringValueOK(false), - bFloatValueOK(false), bFormulaOK(false), bSetType(bType), @@ -1129,8 +1125,6 @@ void XMLValueImportHelper::ProcessAttribute( eValueType, sAttrValue, aValueTypeMap); if (bRet) { - bTypeOK = true; - switch (eValueType) { case XML_VALUE_TYPE_STRING: @@ -1147,7 +1141,6 @@ void XMLValueImportHelper::ProcessAttribute( default: OSL_FAIL("unknown value type"); - bTypeOK = false; } } break; @@ -1158,7 +1151,6 @@ void XMLValueImportHelper::ProcessAttribute( double fTmp; bool const bRet = ::sax::Converter::convertDouble(fTmp,sAttrValue); if (bRet) { - bFloatValueOK = true; fValue = fTmp; } break; @@ -1170,7 +1162,6 @@ void XMLValueImportHelper::ProcessAttribute( bool const bRet = ::sax::Converter::convertDuration(fTmp, sAttrValue); if (bRet) { - bFloatValueOK = true; fValue = fTmp; } break; @@ -1182,7 +1173,6 @@ void XMLValueImportHelper::ProcessAttribute( bool bRet = rImport.GetMM100UnitConverter(). convertDateTime(fTmp,sAttrValue); if (bRet) { - bFloatValueOK = true; fValue = fTmp; } break; @@ -1193,7 +1183,6 @@ void XMLValueImportHelper::ProcessAttribute( bool bTmp(false); bool bRet = ::sax::Converter::convertBool(bTmp, sAttrValue); if (bRet) { - bFloatValueOK = true; fValue = (bTmp ? 1.0 : 0.0); } else @@ -1201,7 +1190,6 @@ void XMLValueImportHelper::ProcessAttribute( double fTmp; bRet = ::sax::Converter::convertDouble(fTmp, sAttrValue); if (bRet) { - bFloatValueOK = true; fValue = fTmp; } } |