diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-07-08 13:40:12 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-07-08 17:32:25 +0200 |
commit | b63524d269a792e20777a91e4ed7e8ceae7ff55f (patch) | |
tree | 38d1ae2f69b8831f4a9f06240032f3c4717a75b9 | |
parent | 3aa8917d448a90bb5d4a4913f2d92c0d5a6681b6 (diff) |
error: comparison between pointer and integer (Clang trunk towards 3.4)
...the check in itga.cxx was useless anyway, as new[] does not return null.
Change-Id: I4de5a46e14a83ab134d0a098a62748e909dc9c00
-rw-r--r-- | filter/source/graphicfilter/ipbm/ipbm.cxx | 6 | ||||
-rw-r--r-- | filter/source/graphicfilter/ipcd/ipcd.cxx | 2 | ||||
-rw-r--r-- | filter/source/graphicfilter/ipcx/ipcx.cxx | 2 | ||||
-rw-r--r-- | filter/source/graphicfilter/iras/iras.cxx | 2 | ||||
-rw-r--r-- | filter/source/graphicfilter/itga/itga.cxx | 2 |
5 files changed, 6 insertions, 8 deletions
diff --git a/filter/source/graphicfilter/ipbm/ipbm.cxx b/filter/source/graphicfilter/ipbm/ipbm.cxx index 5ca1c7b3b2a9..6bf032452251 100644 --- a/filter/source/graphicfilter/ipbm/ipbm.cxx +++ b/filter/source/graphicfilter/ipbm/ipbm.cxx @@ -102,7 +102,7 @@ sal_Bool PBMReader::ReadPBM(Graphic & rGraphic ) { case 0 : maBmp = Bitmap( Size( mnWidth, mnHeight ), 1 ); - if ( ( mpAcc = maBmp.AcquireWriteAccess() ) == sal_False ) + if ( ( mpAcc = maBmp.AcquireWriteAccess() ) == 0 ) return sal_False; mpAcc->SetPaletteEntryCount( 2 ); mpAcc->SetPaletteColor( 0, BitmapColor( 0xff, 0xff, 0xff ) ); @@ -117,7 +117,7 @@ sal_Bool PBMReader::ReadPBM(Graphic & rGraphic ) else maBmp = Bitmap( Size( mnWidth, mnHeight ), 8); - if ( ( mpAcc = maBmp.AcquireWriteAccess() ) == sal_False ) + if ( ( mpAcc = maBmp.AcquireWriteAccess() ) == 0 ) return sal_False; mnCol = (sal_uInt16)mnMaxVal + 1; if ( mnCol > 256 ) @@ -132,7 +132,7 @@ sal_Bool PBMReader::ReadPBM(Graphic & rGraphic ) break; case 2 : maBmp = Bitmap( Size( mnWidth, mnHeight ), 24 ); - if ( ( mpAcc = maBmp.AcquireWriteAccess() ) == sal_False ) + if ( ( mpAcc = maBmp.AcquireWriteAccess() ) == 0 ) return sal_False; break; } diff --git a/filter/source/graphicfilter/ipcd/ipcd.cxx b/filter/source/graphicfilter/ipcd/ipcd.cxx index d9f249b0b625..26cc4c2470ba 100644 --- a/filter/source/graphicfilter/ipcd/ipcd.cxx +++ b/filter/source/graphicfilter/ipcd/ipcd.cxx @@ -151,7 +151,7 @@ sal_Bool PCDReader::ReadPCD( Graphic & rGraphic, FilterConfigItem* pConfigItem ) nBMPHeight = nWidth; } aBmp = Bitmap( Size( nBMPWidth, nBMPHeight ), 24 ); - if ( ( mpAcc = aBmp.AcquireWriteAccess() ) == sal_False ) + if ( ( mpAcc = aBmp.AcquireWriteAccess() ) == 0 ) return sal_False; ReadImage( 5 ,65 ); diff --git a/filter/source/graphicfilter/ipcx/ipcx.cxx b/filter/source/graphicfilter/ipcx/ipcx.cxx index c45f98c42b7d..397b4ce61754 100644 --- a/filter/source/graphicfilter/ipcx/ipcx.cxx +++ b/filter/source/graphicfilter/ipcx/ipcx.cxx @@ -100,7 +100,7 @@ sal_Bool PCXReader::ReadPCX(Graphic & rGraphic) if ( nStatus ) { aBmp = Bitmap( Size( nWidth, nHeight ), nDestBitsPerPixel ); - if ( ( pAcc = aBmp.AcquireWriteAccess() ) == sal_False ) + if ( ( pAcc = aBmp.AcquireWriteAccess() ) == 0 ) return sal_False; if ( nDestBitsPerPixel <= 8 ) diff --git a/filter/source/graphicfilter/iras/iras.cxx b/filter/source/graphicfilter/iras/iras.cxx index 36241e52bd46..87b925830946 100644 --- a/filter/source/graphicfilter/iras/iras.cxx +++ b/filter/source/graphicfilter/iras/iras.cxx @@ -98,7 +98,7 @@ sal_Bool RASReader::ReadRAS(Graphic & rGraphic) return sal_False; maBmp = Bitmap( Size( mnWidth, mnHeight ), mnDstBitsPerPix ); - if ( ( mpAcc = maBmp.AcquireWriteAccess() ) == sal_False ) + if ( ( mpAcc = maBmp.AcquireWriteAccess() ) == 0 ) return sal_False; if ( mnDstBitsPerPix <= 8 ) // paletten bildchen diff --git a/filter/source/graphicfilter/itga/itga.cxx b/filter/source/graphicfilter/itga/itga.cxx index e3967e9392e7..e27d2ae43637 100644 --- a/filter/source/graphicfilter/itga/itga.cxx +++ b/filter/source/graphicfilter/itga/itga.cxx @@ -732,8 +732,6 @@ sal_Bool TGAReader::ImplReadPalette() mpFileHeader->nColorMapEntrySize = 0x3f; // patch for the following switch routine } mpColorMap = new sal_uInt32[ nColors ]; // we will always index dwords - if ( mpColorMap == sal_False ) - return sal_False; // out of memory %&!$&/!"�$ switch( mpFileHeader->nColorMapEntrySize ) { |