Commits

Anonymous committed dbaa254

#i10000#: casts required for .Net2008 compiler2

  • Participants
  • Parent commits ba596ec

Comments (0)

Files changed (2)

File sc/source/filter/excel/xestream.cxx

     // 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;
 }

File sc/source/filter/excel/xestring.cxx

     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