Kaydet (Commit) 873f0e07 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

coverity#1242368: Unchecked return value

Change-Id: I6aaad60cf08349aee6c07621764a1a6c071ad2b6
üst 35f66cb2
...@@ -674,10 +674,6 @@ void SetColorScaleEntryTypes( const ScColorScaleEntry& rEntry, ListBox& rLbType, ...@@ -674,10 +674,6 @@ void SetColorScaleEntryTypes( const ScColorScaleEntry& rEntry, ListBox& rLbType,
void SetColorScaleEntry( ScColorScaleEntry* pEntry, const ListBox& rType, const Edit& rValue, ScDocument* pDoc, const ScAddress& rPos, bool bDataBar ) void SetColorScaleEntry( ScColorScaleEntry* pEntry, const ListBox& rType, const Edit& rValue, ScDocument* pDoc, const ScAddress& rPos, bool bDataBar )
{ {
sal_uInt32 nIndex = 0;
double nVal = 0;
SvNumberFormatter* pNumberFormatter = pDoc->GetFormatTable();
pNumberFormatter->IsNumberFormat(rValue.GetText(), nIndex, nVal);
// color scale does not have the automatic entry // color scale does not have the automatic entry
sal_Int32 nPos = rType.GetSelectEntryPos(); sal_Int32 nPos = rType.GetSelectEntryPos();
...@@ -694,7 +690,13 @@ void SetColorScaleEntry( ScColorScaleEntry* pEntry, const ListBox& rType, const ...@@ -694,7 +690,13 @@ void SetColorScaleEntry( ScColorScaleEntry* pEntry, const ListBox& rType, const
case COLORSCALE_PERCENTILE: case COLORSCALE_PERCENTILE:
case COLORSCALE_VALUE: case COLORSCALE_VALUE:
case COLORSCALE_PERCENT: case COLORSCALE_PERCENT:
pEntry->SetValue(nVal); {
sal_uInt32 nIndex = 0;
double nVal = 0;
SvNumberFormatter* pNumberFormatter = pDoc->GetFormatTable();
(void)pNumberFormatter->IsNumberFormat(rValue.GetText(), nIndex, nVal);
pEntry->SetValue(nVal);
}
break; break;
case COLORSCALE_FORMULA: case COLORSCALE_FORMULA:
pEntry->SetFormula(rValue.GetText(), pDoc, rPos); pEntry->SetFormula(rValue.GetText(), pDoc, rPos);
......
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