INTEGRATION: CWS warnings01 (1.5.112); FILE MERGED

2006/01/25 20:12:05 sb 1.5.112.3: RESYNC: (1.6-1.7); FILE MERGED
2005/09/23 03:25:20 sb 1.5.112.2: RESYNC: (1.5-1.6); FILE MERGED
2005/09/01 14:00:02 sb 1.5.112.1: #i53898# Made code warning-free.
This commit is contained in:
Jens-Heiner Rechtien 2006-06-19 21:53:44 +00:00
parent 127c5b994a
commit c977dd1cc5

View file

@ -4,9 +4,9 @@
*
* $RCSfile: seqstream.cxx,v $
*
* $Revision: 1.7 $
* $Revision: 1.8 $
*
* last change: $Author: obo $ $Date: 2006-01-20 10:00:13 $
* last change: $Author: hr $ $Date: 2006-06-19 22:53:44 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@ -184,7 +184,8 @@ void SAL_CALL OSequenceOutputStream::writeBytes( const Sequence< sal_Int8 >& _rD
if (m_nSize + _rData.getLength() > m_rSequence.getLength())
{
sal_Int32 nCurrentLength = m_rSequence.getLength();
sal_Int32 nNewLength = nCurrentLength * m_nResizeFactor;
sal_Int32 nNewLength = static_cast< sal_Int32 >(
nCurrentLength * m_nResizeFactor);
if (m_nMinimumResize > nNewLength - nCurrentLength)
// we have a minimum so it's not too inefficient for small sequences and small write requests