Kaydet (Commit) bd60974b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

clang-analyzer-deadcode.DeadStores

Change-Id: Ia381f1b7558e2882a9dc5b8f6e127d24a4b841c3
üst 4c8fa775
......@@ -134,7 +134,6 @@ void XMLNumberFormatAttributesExportHelper::WriteAttributes(SvXMLExport& rXMLExp
rXMLExport.AddAttribute(XML_NAMESPACE_OFFICE, XML_VALUE_TYPE, XML_CURRENCY);
if (!rCurrency.isEmpty())
rXMLExport.AddAttribute(XML_NAMESPACE_OFFICE, XML_CURRENCY, rCurrency);
bWasSetTypeAttribute = true;
}
if (bExportValue)
......@@ -148,12 +147,8 @@ void XMLNumberFormatAttributesExportHelper::WriteAttributes(SvXMLExport& rXMLExp
break;
case util::NumberFormat::DATE:
case util::NumberFormat::DATETIME:
{
if (!bWasSetTypeAttribute)
{
rXMLExport.AddAttribute(XML_NAMESPACE_OFFICE, XML_VALUE_TYPE, XML_DATE);
bWasSetTypeAttribute = true;
}
if (bExportValue)
{
if ( rXMLExport.SetNullDateOnUnitConverter() )
......@@ -166,12 +161,8 @@ void XMLNumberFormatAttributesExportHelper::WriteAttributes(SvXMLExport& rXMLExp
}
break;
case util::NumberFormat::TIME:
{
if (!bWasSetTypeAttribute)
{
rXMLExport.AddAttribute(XML_NAMESPACE_OFFICE, XML_VALUE_TYPE, XML_TIME);
bWasSetTypeAttribute = true;
}
if (bExportValue)
{
OUStringBuffer sBuffer;
......@@ -181,12 +172,8 @@ void XMLNumberFormatAttributesExportHelper::WriteAttributes(SvXMLExport& rXMLExp
}
break;
case util::NumberFormat::LOGICAL:
{
if (!bWasSetTypeAttribute)
{
rXMLExport.AddAttribute(XML_NAMESPACE_OFFICE, XML_VALUE_TYPE, XML_BOOLEAN);
bWasSetTypeAttribute = true;
}
if (bExportValue)
{
double fTempValue = rValue;
......@@ -214,8 +201,6 @@ void XMLNumberFormatAttributesExportHelper::WriteAttributes(SvXMLExport& rXMLExp
}
break;
case util::NumberFormat::TEXT:
{
if (!bWasSetTypeAttribute)
{
rXMLExport.AddAttribute(XML_NAMESPACE_OFFICE, XML_VALUE_TYPE, XML_FLOAT);
if (bExportValue)
......@@ -226,7 +211,6 @@ void XMLNumberFormatAttributesExportHelper::WriteAttributes(SvXMLExport& rXMLExp
rXMLExport.AddAttribute(XML_NAMESPACE_OFFICE, XML_VALUE, sValue);
}
}
}
break;
}
}
......@@ -417,7 +401,6 @@ void XMLNumberFormatAttributesExportHelper::WriteAttributes(
pExport->AddAttribute(sAttrValType, XML_CURRENCY);
if (!rCurrency.isEmpty())
pExport->AddAttribute(sAttrCurrency, rCurrency);
bWasSetTypeAttribute = true;
}
if (bExportValue)
......@@ -431,12 +414,8 @@ void XMLNumberFormatAttributesExportHelper::WriteAttributes(
break;
case util::NumberFormat::DATE:
case util::NumberFormat::DATETIME:
{
if (!bWasSetTypeAttribute)
{
pExport->AddAttribute(sAttrValType, XML_DATE);
bWasSetTypeAttribute = true;
}
if (bExportValue)
{
if ( pExport->SetNullDateOnUnitConverter() )
......@@ -449,12 +428,8 @@ void XMLNumberFormatAttributesExportHelper::WriteAttributes(
}
break;
case util::NumberFormat::TIME:
{
if (!bWasSetTypeAttribute)
{
pExport->AddAttribute(sAttrValType, XML_TIME);
bWasSetTypeAttribute = true;
}
if (bExportValue)
{
OUStringBuffer sBuffer;
......@@ -464,12 +439,8 @@ void XMLNumberFormatAttributesExportHelper::WriteAttributes(
}
break;
case util::NumberFormat::LOGICAL:
{
if (!bWasSetTypeAttribute)
{
pExport->AddAttribute(sAttrValType, XML_BOOLEAN);
bWasSetTypeAttribute = true;
}
if (bExportValue)
{
double fTempValue = rValue;
......@@ -497,8 +468,6 @@ void XMLNumberFormatAttributesExportHelper::WriteAttributes(
}
break;
case util::NumberFormat::TEXT:
{
if (!bWasSetTypeAttribute)
{
pExport->AddAttribute(sAttrValType, XML_FLOAT);
if (bExportValue)
......@@ -509,7 +478,6 @@ void XMLNumberFormatAttributesExportHelper::WriteAttributes(
pExport->AddAttribute(sAttrValue, sValue);
}
}
}
break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment