summaryrefslogtreecommitdiff
path: root/filter/source/graphicfilter/ipbm
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-11-22 10:02:51 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-11-22 13:33:46 +0100
commitdf2e78f1a8a1dc628eb26c8173ba1f6bae0ca6f4 (patch)
tree6aaf6d2f2613c3de773e3d3134b0d1354e0d0b12 /filter/source/graphicfilter/ipbm
parent2161d04688be77112c281a1ada5263b963677c43 (diff)
replace check of eof and GetError with good
Change-Id: I7d9f04262ab5420e9a14813fa1274bb9d01e3291 Reviewed-on: https://gerrit.libreoffice.org/45076 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'filter/source/graphicfilter/ipbm')
-rw-r--r--filter/source/graphicfilter/ipbm/ipbm.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/filter/source/graphicfilter/ipbm/ipbm.cxx b/filter/source/graphicfilter/ipbm/ipbm.cxx
index ca63bb570b3e..3228b0bdc3ee 100644
--- a/filter/source/graphicfilter/ipbm/ipbm.cxx
+++ b/filter/source/graphicfilter/ipbm/ipbm.cxx
@@ -281,7 +281,7 @@ bool PBMReader::ImplReadBody()
case 0 :
while ( nHeight != mnHeight )
{
- if ( mrPBM.eof() || mrPBM.GetError() )
+ if (!mrPBM.good())
return false;
if ( --nShift < 0 )
@@ -303,7 +303,7 @@ bool PBMReader::ImplReadBody()
case 1 :
while ( nHeight != mnHeight )
{
- if ( mrPBM.eof() || mrPBM.GetError() )
+ if (!mrPBM.good())
return false;
mrPBM.ReadUChar( nDat );
@@ -321,7 +321,7 @@ bool PBMReader::ImplReadBody()
case 2 :
while ( nHeight != mnHeight )
{
- if ( mrPBM.eof() || mrPBM.GetError() )
+ if (!mrPBM.good())
return false;
sal_uInt8 nR, nG, nB;
@@ -346,7 +346,7 @@ bool PBMReader::ImplReadBody()
case 0 :
while ( !bFinished )
{
- if ( mrPBM.eof() || mrPBM.GetError() )
+ if (!mrPBM.good())
return false;
mrPBM.ReadUChar( nDat );
@@ -405,7 +405,7 @@ bool PBMReader::ImplReadBody()
continue;
}
- if ( mrPBM.eof() || mrPBM.GetError() )
+ if (!mrPBM.good())
return false;
mrPBM.ReadUChar( nDat );
@@ -478,7 +478,7 @@ bool PBMReader::ImplReadBody()
continue;
}
- if ( mrPBM.eof() || mrPBM.GetError() )
+ if (!mrPBM.good())
return false;
mrPBM.ReadUChar( nDat );