summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 18:24:19 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 18:24:19 +0000
commite37a32a23f8f305c1a8a563a6f8d56ed6b22edd6 (patch)
tree1e64231677b13bc212a2a45ff8478b30f81155eb
parent04737cb8f3daaefa1b2c4aa52a4655ed13459239 (diff)
INTEGRATION: CWS warnings01 (1.21.70); FILE MERGED
2006/04/07 18:48:48 sb 1.21.70.4: RESYNC: (1.22-1.23); FILE MERGED 2006/03/17 16:12:47 pl 1.21.70.3: #i55991# removed warnings for windows platform 2006/01/25 19:23:59 sb 1.21.70.2: RESYNC: (1.21-1.22); FILE MERGED 2005/11/04 17:25:00 pl 1.21.70.1: #i55991# removed warnings for linux/solaris
-rw-r--r--vcl/source/gdi/image.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/vcl/source/gdi/image.cxx b/vcl/source/gdi/image.cxx
index 2bd81d94336e..957256802632 100644
--- a/vcl/source/gdi/image.cxx
+++ b/vcl/source/gdi/image.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: image.cxx,v $
*
- * $Revision: 1.23 $
+ * $Revision: 1.24 $
*
- * last change: $Author: obo $ $Date: 2006-03-29 11:25:17 $
+ * last change: $Author: hr $ $Date: 2006-06-19 19:24:19 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -76,8 +76,8 @@
#include <image.hxx>
#endif
-DBG_NAME( Image );
-DBG_NAME( ImageList );
+DBG_NAME( Image )
+DBG_NAME( ImageList )
#define IMAGE_FILE_VERSION 100
@@ -547,7 +547,7 @@ ImageList::ImageList( const ResId& rResId ) :
if( nObjMask & RSC_IMAGELIST_IDCOUNT )
pResMgr->ReadShort();
- ImplInit( aBmpEx, nCount, aIdArray.get(), NULL, 4 );
+ ImplInit( aBmpEx, sal::static_int_cast<USHORT>(nCount), aIdArray.get(), NULL, 4 );
}
}
@@ -921,7 +921,7 @@ void ImageList::AddImage( USHORT nId, const Image& rImage )
ImageAryData* pOldAry = mpImplData->mpAry;
USHORT nOldSize = mpImplData->mnArySize;
- mpImplData->mnArySize += mnGrowSize;
+ mpImplData->mnArySize = sal::static_int_cast<USHORT>(mpImplData->mnArySize + mnGrowSize);
mpImplData->mpAry = new ImageAryData[mpImplData->mnArySize];
for( USHORT i = 0; i < nOldSize; ++i )
@@ -1047,7 +1047,7 @@ void ImageList::CopyImage( USHORT nId, USHORT nCopyId )
ImageAryData* pOldAry = mpImplData->mpAry;
USHORT nOldSize = mpImplData->mnArySize;
- mpImplData->mnArySize += mnGrowSize;
+ mpImplData->mnArySize = sal::static_int_cast<USHORT>(mpImplData->mnArySize + mnGrowSize);
mpImplData->mpAry = new ImageAryData[mpImplData->mnArySize];
for( USHORT i = 0; i < nOldSize; ++i )