summaryrefslogtreecommitdiff
path: root/goodies
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-09-09 10:29:44 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-09-09 10:29:44 +0000
commit21340afb144331b33c51469213bdc2efd075580c (patch)
treed898056df08c78e02ec352254370962d8b5771cf /goodies
parent540a11f4c78e88aa77823fd25162702dadef8135 (diff)
INTEGRATION: CWS ooo20040815 (1.2.232); FILE MERGED
2004/08/04 13:13:39 waratah 1.2.232.1: #i32569# add initialisers to variables remove pragmas from gcc builds add default clause to case statement with default value
Diffstat (limited to 'goodies')
-rw-r--r--goodies/source/filter.vcl/etiff/etiff.cxx23
1 files changed, 14 insertions, 9 deletions
diff --git a/goodies/source/filter.vcl/etiff/etiff.cxx b/goodies/source/filter.vcl/etiff/etiff.cxx
index 3eb6ab199ba3..b187d8be7b7a 100644
--- a/goodies/source/filter.vcl/etiff/etiff.cxx
+++ b/goodies/source/filter.vcl/etiff/etiff.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: etiff.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: sj $ $Date: 2001-03-08 13:47:46 $
+ * last change: $Author: hr $ $Date: 2004-09-09 11:29:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -160,15 +160,15 @@ public:
// ------------------------------------------------------------------------
TIFFWriter::TIFFWriter() :
+ mbStatus ( TRUE ),
+ mpAcc ( NULL ),
+ mnCurAllPictHeight ( 0 ),
+ mnSumOfAllPictHeight( 0 ),
mnLastPercent ( 0 ),
mnXResPos ( 0 ),
mnYResPos ( 0 ),
- mnCurAllPictHeight ( 0 ),
- mnSumOfAllPictHeight( 0 ),
- mnStripByteCountPos ( 0 ),
mnBitmapPos ( 0 ),
- mpAcc ( NULL ),
- mbStatus ( TRUE )
+ mnStripByteCountPos ( 0 )
{
}
@@ -316,6 +316,9 @@ BOOL TIFFWriter::ImplWriteHeader( BOOL bMultiPage )
case 24:
nTemp = 2;
break;
+ default:
+ nTemp = 0; // -Wall set a default...
+ break;
}
ImplWriteTag( PhotometricInterpretation, 3, 1, nTemp );
mnBitmapPos = mpOStm->Tell();
@@ -379,7 +382,8 @@ void TIFFWriter::ImplWritePalette()
BOOL TIFFWriter::ImplWriteBody()
{
- BYTE nTemp, nShift;
+ BYTE nTemp = 0;
+ BYTE nShift;
ULONG j, x, y;
ULONG nGfxBegin = mpOStm->Tell();
@@ -631,8 +635,9 @@ extern "C" BOOL __LOADONCALLAPI GraphicExport( SvStream& rStream, Graphic& rGrap
return TIFFWriter().WriteTIFF( rGraphic, rStream, pCallback, pCallerData, pConfigItem );
}
-
+#ifndef GCC
#pragma hdrstop
+#endif
// ---------------
// - Win16 trash -