summaryrefslogtreecommitdiff
path: root/sfx2/source
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 /sfx2/source
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 'sfx2/source')
-rw-r--r--sfx2/source/appl/xpackcreator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/appl/xpackcreator.cxx b/sfx2/source/appl/xpackcreator.cxx
index c862257a4f40..82f19dfd30ed 100644
--- a/sfx2/source/appl/xpackcreator.cxx
+++ b/sfx2/source/appl/xpackcreator.cxx
@@ -105,7 +105,7 @@ void SAL_CALL OPackageStructureCreator::convertToPackage( const OUString& aFolde
if ( nRead < 32000 )
aSeq.realloc( nRead );
xTargetStream->writeBytes( aSeq );
- } while( !pTempStream->eof() && !pTempStream->GetError() && nRead );
+ } while (pTempStream->good() && nRead);
if ( pTempStream->GetError() )
throw io::IOException();