From c977dd1cc5d8484f28c89cb0f6cfbc8cc61cc6df Mon Sep 17 00:00:00 2001
From: Jens-Heiner Rechtien
Date: Mon, 19 Jun 2006 21:53:44 +0000
Subject: [PATCH] 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.
---
comphelper/source/streaming/seqstream.cxx | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/comphelper/source/streaming/seqstream.cxx b/comphelper/source/streaming/seqstream.cxx
index 762191b3cd92..a0f53c26a8cd 100644
--- a/comphelper/source/streaming/seqstream.cxx
+++ b/comphelper/source/streaming/seqstream.cxx
@@ -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