diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-27 20:22:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-28 11:29:16 +0000 |
commit | 92026cc8444cca42c517da03f5f139d71a1a149d (patch) | |
tree | 945791ceea7c3464031dcfa142a657c95132ef05 /vcl | |
parent | c051007c1b744ab072547107a7820551f992ad18 (diff) |
coverity#440938 Logically dead code
Change-Id: I33f895ab913eee0dd6a5df05cd2f4cffb88cc1ef
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/sgvmain.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/vcl/source/filter/sgvmain.cxx b/vcl/source/filter/sgvmain.cxx index d745b4bf58bb..cf02e1581cc0 100644 --- a/vcl/source/filter/sgvmain.cxx +++ b/vcl/source/filter/sgvmain.cxx @@ -935,7 +935,6 @@ bool SgfSDrwFilter(SvStream& rInp, GDIMetaFile& rMtf, INetURLObject aIniPath ) SgfHeader aHead; SgfEntry aEntr; sal_uLong nNext; - bool bRdFlag=false; // graphic entry read ? bool bRet=false; // return value aIniPath.Append(OUString("sgf.ini")); @@ -947,7 +946,7 @@ bool SgfSDrwFilter(SvStream& rInp, GDIMetaFile& rMtf, INetURLObject aIniPath ) rInp>>aHead; if (aHead.ChkMagic() && aHead.Typ==SgfStarDraw && aHead.Version==SGV_VERSION) { nNext=aHead.GetOffset(); - while (nNext && !bRdFlag && !rInp.GetError()) { + while (nNext && !rInp.GetError()) { rInp.Seek(nFileStart+nNext); rInp>>aEntr; nNext=aEntr.GetOffset(); @@ -955,9 +954,6 @@ bool SgfSDrwFilter(SvStream& rInp, GDIMetaFile& rMtf, INetURLObject aIniPath ) bRet=SgfFilterSDrw( rInp,aHead,aEntr,rMtf ); } } // while(nNext) - if (bRdFlag) { - if (!rInp.GetError()) bRet=true; // seems ok - } } delete pSgfFonts; return(bRet); |