diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-25 20:41:42 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-25 20:56:32 +0000 |
commit | 0dda969660755caa1fe0ec2e32ba11490840c8e2 (patch) | |
tree | 6f7d206677a778dcb06e22df70b2c635cbe3f9b7 /vcl | |
parent | cffd26d1030b67e0ed300dafd8fdb406564face6 (diff) |
coverity#440936 Logically dead code
Change-Id: I04299880a9e5ccc5d92aa194a9cd100a46906b79
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/sgfbram.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/vcl/source/filter/sgfbram.cxx b/vcl/source/filter/sgfbram.cxx index 66c972a4839d..bb43d7101388 100644 --- a/vcl/source/filter/sgfbram.cxx +++ b/vcl/source/filter/sgfbram.cxx @@ -466,14 +466,13 @@ bool SgfVectFilter(SvStream& rInp, GDIMetaFile& rMtf) SgfHeader aHead; SgfEntry aEntr; sal_uLong nNext; - bool bRdFlag=false; // read graphics entry? bool bRet=false; // return value nFileStart=rInp.Tell(); rInp>>aHead; if (aHead.ChkMagic() && aHead.Typ==SGF_SIMPVECT) { nNext=aHead.GetOffset(); - while (nNext && !bRdFlag && !rInp.GetError()) { + while (nNext && !rInp.GetError()) { rInp.Seek(nFileStart+nNext); rInp>>aEntr; nNext=aEntr.GetOffset(); @@ -481,9 +480,6 @@ bool SgfVectFilter(SvStream& rInp, GDIMetaFile& rMtf) bRet=SgfFilterVect(rInp,aHead,aEntr,rMtf); } } // while(nNext) - if (bRdFlag) { - if (!rInp.GetError()) bRet=true; // apparently okay - } } return(bRet); } |