summaryrefslogtreecommitdiff
path: root/sc/source/filter/qpro/qpro.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/qpro/qpro.cxx')
-rw-r--r--sc/source/filter/qpro/qpro.cxx21
1 files changed, 2 insertions, 19 deletions
diff --git a/sc/source/filter/qpro/qpro.cxx b/sc/source/filter/qpro/qpro.cxx
index af3544967711..3e6756767eac 100644
--- a/sc/source/filter/qpro/qpro.cxx
+++ b/sc/source/filter/qpro/qpro.cxx
@@ -227,15 +227,7 @@ ErrCode ScQProReader::parse(ScDocument& rDoc)
ErrCode ScQProReader::import( ScDocument& rDoc)
{
- ErrCode eRet;
- try
- {
- eRet = parse(rDoc);
- }
- catch (SvStreamEOFException&)
- {
- eRet = SCERR_IMPORT_OPEN;
- }
+ ErrCode eRet = parse(rDoc);
rDoc.CalcAfterLoad();
return eRet;
}
@@ -254,16 +246,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool TestImportQPW(SvStream &rStream)
aDocument.SetHardRecalcState(ScDocument::HardRecalcState::ETERNAL);
ScQProReader aReader(&rStream);
-
- ErrCode eRet;
- try
- {
- eRet = aReader.parse(aDocument);
- }
- catch (SvStreamEOFException&)
- {
- eRet = SCERR_IMPORT_OPEN;
- }
+ ErrCode eRet = aReader.parse(aDocument);
return eRet == ERRCODE_NONE;
}