diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2009-01-14 13:42:02 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2009-01-14 13:42:02 +0000 |
commit | 878ae4fa504e908d7798c5e79bf6830a46455fee (patch) | |
tree | 23f8828ac659d210aa74dc3bc9de4de95f678798 /sc/source | |
parent | #i10000#: fix link problems due to CWS frmdlg (diff) | |
download | core-878ae4fa504e908d7798c5e79bf6830a46455fee.tar.gz core-878ae4fa504e908d7798c5e79bf6830a46455fee.zip |
#i10000#: casts required for .Net2008 compiler2
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/filter/excel/xestream.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/excel/xestring.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/excel/xestream.cxx b/sc/source/filter/excel/xestream.cxx index 5f3fb35d86da..9cb054d2ada2 100644 --- a/sc/source/filter/excel/xestream.cxx +++ b/sc/source/filter/excel/xestream.cxx @@ -421,7 +421,7 @@ static ScAddress lcl_ToAddress( const XclAddress& rAddress ) // the row is >= MAXROW or the column is >= MAXCOL, and Excel doesn't // like "A:IV" (i.e. no row numbers). Prevent this. aAddress.SetRow( std::min<sal_Int32>( rAddress.mnRow, MAXROW-1 ) ); - aAddress.SetCol( std::min<sal_Int32>( rAddress.mnCol, MAXCOL-1 ) ); + aAddress.SetCol( static_cast<sal_Int16>(std::min<sal_Int32>( rAddress.mnCol, MAXCOL-1 )) ); return aAddress; } diff --git a/sc/source/filter/excel/xestring.cxx b/sc/source/filter/excel/xestring.cxx index af066c20d0b6..9af8dbfdd851 100644 --- a/sc/source/filter/excel/xestring.cxx +++ b/sc/source/filter/excel/xestring.cxx @@ -501,7 +501,7 @@ static sal_uInt16 lcl_WriteRun( XclExpXmlStream& rStrm, const ScfUInt16Vec& rBuf rWorksheet->writeEscaped( XclXmlUtils::ToOUString( rBuffer, nStart, nLength ) ); rWorksheet->endElement( XML_t ); rWorksheet->endElement( XML_r ); - return nStart + nLength; + return static_cast<sal_uInt16>(nStart + nLength); } void XclExpString::WriteXml( XclExpXmlStream& rStrm ) const |