diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-20 04:36:21 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-20 04:36:21 +0000 |
commit | 9cf5c933f4696fe73debfba6df736b21d2a9d056 (patch) | |
tree | 3cfc0fe9b2c1890d213120ad818de402363535b7 /ucb | |
parent | 4ab2fae9176580bc562124758bc148785824249b (diff) |
INTEGRATION: CWS warnings01 (1.8.10); FILE MERGED
2005/11/10 18:10:24 pl 1.8.10.1: #i55991# removed warnings
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/webdav/NeonInputStream.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ucb/source/ucp/webdav/NeonInputStream.cxx b/ucb/source/ucp/webdav/NeonInputStream.cxx index 35d99a00cc1b..8b3c25110e2c 100644 --- a/ucb/source/ucp/webdav/NeonInputStream.cxx +++ b/ucb/source/ucp/webdav/NeonInputStream.cxx @@ -4,9 +4,9 @@ * * $RCSfile: NeonInputStream.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: rt $ $Date: 2005-09-09 16:11:52 $ + * last change: $Author: hr $ $Date: 2006-06-20 05:36:21 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -67,7 +67,7 @@ NeonInputStream::~NeonInputStream( void ) // ------------------------------------------------------------------- void NeonInputStream::AddToStream( const char * inBuf, sal_Int32 inLen ) { - mInputBuffer.realloc( mLen + inLen ); + mInputBuffer.realloc( sal::static_int_cast<sal_Int32>(mLen) + inLen ); rtl_copyMemory( mInputBuffer.getArray() + mLen, inBuf, inLen ); mLen += inLen; } @@ -97,7 +97,7 @@ sal_Int32 SAL_CALL NeonInputStream::readBytes( { // Work out how much we're actually going to write sal_Int32 theBytes2Read = nBytesToRead; - sal_Int32 theBytesLeft = mLen - mPos; + sal_Int32 theBytesLeft = sal::static_int_cast<sal_Int32>(mLen - mPos); if ( theBytes2Read > theBytesLeft ) theBytes2Read = theBytesLeft; @@ -152,7 +152,7 @@ sal_Int32 SAL_CALL NeonInputStream::available( ) ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException ) { - return mLen - mPos; + return sal::static_int_cast<sal_Int32>(mLen - mPos); } // ------------------------------------------------------------------- |