diff options
author | Kurt Zenker <kz@openoffice.org> | 2006-07-19 14:54:21 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2006-07-19 14:54:21 +0000 |
commit | 8e314468187a3ca29c87eed4e667fcd10bae6eb6 (patch) | |
tree | f79d4d4de729e787f0ea55c41ca07386ae722e2b /canvas/source | |
parent | c68377c179d02e9dfd3b94bdc297a52c7ef6561b (diff) |
INTEGRATION: CWS warningfixes02 (1.3.2); FILE MERGED
2006/06/30 11:49:29 sb 1.3.2.1: #i66577# Made the code compile (warning-free) on a unxlngi6.pro GCC 4.1.1 Linux box.
Diffstat (limited to 'canvas/source')
-rw-r--r-- | canvas/source/tools/bitmap.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/canvas/source/tools/bitmap.cxx b/canvas/source/tools/bitmap.cxx index a72bd8817785..82646156c4c8 100644 --- a/canvas/source/tools/bitmap.cxx +++ b/canvas/source/tools/bitmap.cxx @@ -4,9 +4,9 @@ * * $RCSfile: bitmap.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: hr $ $Date: 2006-06-20 02:16:50 $ + * last change: $Author: kz $ $Date: 2006-07-19 15:54:21 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -199,6 +199,8 @@ namespace canvas pDst[2] = argb.Color.g; pDst[3] = argb.Color.b; break; + default: + break; } mpImage->unlock(); @@ -231,6 +233,8 @@ namespace canvas aRet[2] = pSrc[3]; aRet[3] = pSrc[0]; break; + default: + break; } mpImage->unlock(); @@ -571,8 +575,9 @@ namespace canvas case IColorBuffer::FMT_A8R8G8B8: case IColorBuffer::FMT_X8R8G8B8: return 4; + default: + return 0; } - return 0; } ImageSharedPtr mpImage; |