Kaydet (Commit) 4c2a87d6 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

int to sal_Int32

Change-Id: I44c5027c15b4f77a3ee76b62673641cc200fbefe
üst 1245c2a7
...@@ -176,7 +176,7 @@ void ScColorScaleEntry::dumpInfo(rtl::OUStringBuffer& rBuf) const ...@@ -176,7 +176,7 @@ void ScColorScaleEntry::dumpInfo(rtl::OUStringBuffer& rBuf) const
default: default:
rBuf.append( "Unsupported Type\n" ); rBuf.append( "Unsupported Type\n" );
} }
rBuf.append( "Color: " ).append( (int)maColor.GetRed() ).append( "," ).append( (int)maColor.GetGreen() ).append( "," ).append( (int)maColor.GetBlue() ).append( "\n" ); rBuf.append( "Color: " ).append( (sal_Int32)maColor.GetRed() ).append( "," ).append( (sal_Int32)maColor.GetGreen() ).append( "," ).append( (sal_Int32)maColor.GetBlue() ).append( "\n" );
if(meType == COLORSCALE_FORMULA) if(meType == COLORSCALE_FORMULA)
rBuf.append( "Formula: " ).append( GetFormula( formula::FormulaGrammar::GRAM_DEFAULT ) ).append("\n"); rBuf.append( "Formula: " ).append( GetFormula( formula::FormulaGrammar::GRAM_DEFAULT ) ).append("\n");
else if( meType != COLORSCALE_MIN && meType != COLORSCALE_MAX ) else if( meType != COLORSCALE_MIN && meType != COLORSCALE_MAX )
...@@ -549,7 +549,7 @@ void ScColorScaleFormat::dumpInfo(rtl::OUStringBuffer& rBuf) const ...@@ -549,7 +549,7 @@ void ScColorScaleFormat::dumpInfo(rtl::OUStringBuffer& rBuf) const
{ {
boost::scoped_ptr<Color> pColor( GetColor(ScAddress(nCol, nRow, nTab)) ); boost::scoped_ptr<Color> pColor( GetColor(ScAddress(nCol, nRow, nTab)) );
rBuf.append(nCol).append(",").append(nRow).append(",").append(nTab).append(","); rBuf.append(nCol).append(",").append(nRow).append(",").append(nTab).append(",");
rBuf.append(((int)pColor->GetRed())).append(",").append(((int)pColor->GetGreen())).append(",").append(((int)pColor->GetBlue())).append("\n"); rBuf.append(((sal_Int32)pColor->GetRed())).append(",").append(((sal_Int32)pColor->GetGreen())).append(",").append(((sal_Int32)pColor->GetBlue())).append("\n");
} }
} }
} }
......
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