diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-11-22 10:02:51 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-11-22 13:33:46 +0100 |
commit | df2e78f1a8a1dc628eb26c8173ba1f6bae0ca6f4 (patch) | |
tree | 6aaf6d2f2613c3de773e3d3134b0d1354e0d0b12 /sc | |
parent | 2161d04688be77112c281a1ada5263b963677c43 (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 'sc')
-rw-r--r-- | sc/source/ui/dbgui/scuiasciiopt.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sc/source/ui/dbgui/scuiasciiopt.cxx b/sc/source/ui/dbgui/scuiasciiopt.cxx index 43418fc3aad2..ec3604fde5c7 100644 --- a/sc/source/ui/dbgui/scuiasciiopt.cxx +++ b/sc/source/ui/dbgui/scuiasciiopt.cxx @@ -530,9 +530,7 @@ bool ScImportAsciiDlg::GetLine( sal_uLong nLine, OUString &rText ) // need to work out some more line information do { - if (!Seek( mpRowPosArray[mnRowPosCount]) || - mpDatStream->GetError() != ERRCODE_NONE || - mpDatStream->eof()) + if (!Seek(mpRowPosArray[mnRowPosCount]) || !mpDatStream->good()) { bRet = false; break; @@ -541,9 +539,7 @@ bool ScImportAsciiDlg::GetLine( sal_uLong nLine, OUString &rText ) mcTextSep); mnStreamPos = mpDatStream->Tell(); mpRowPosArray[++mnRowPosCount] = mnStreamPos; - } while (nLine >= mnRowPosCount && - mpDatStream->GetError() == ERRCODE_NONE && - !mpDatStream->eof()); + } while (nLine >= mnRowPosCount && mpDatStream->good()); if (mpDatStream->eof() && mnStreamPos == mpRowPosArray[mnRowPosCount-1]) { |