hwpfilter/source/hwpreader.cxx |   15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

New commits:
commit 8950ecd0718fdd5b773922b223d28deefe9adf59
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Tue Oct 8 08:32:41 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Tue Oct 8 13:15:50 2024 +0200

    an exit on a failed hwpfilter import is an atypical solution
    
    Change-Id: Iefe31df20ca3e7e91175e00d1f15ff6c851ec536
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174659
    Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/hwpfilter/source/hwpreader.cxx b/hwpfilter/source/hwpreader.cxx
index 95de51ad495d..7bc9d4dbf581 100644
--- a/hwpfilter/source/hwpreader.cxx
+++ b/hwpfilter/source/hwpreader.cxx
@@ -4751,19 +4751,12 @@ private:
 
 HwpImportFilter::HwpImportFilter(const Reference< XComponentContext >& 
rxContext)
 {
-    try {
-        Reference< XDocumentHandler > xHandler( 
rxContext->getServiceManager()->createInstanceWithContext( 
WRITER_IMPORTER_NAME, rxContext ), UNO_QUERY );
+    Reference<XDocumentHandler> 
xHandler(rxContext->getServiceManager()->createInstanceWithContext(WRITER_IMPORTER_NAME,
 rxContext), UNO_QUERY);
 
-        rFilter = new HwpReader;
-        rFilter->setDocumentHandler( xHandler );
+    rFilter = new HwpReader;
+    rFilter->setDocumentHandler( xHandler );
 
-        rImporter.set(xHandler, UNO_QUERY);
-    }
-    catch( Exception & )
-    {
-        printf(" fail to instantiate %s
", WRITER_IMPORTER_NAME.toUtf8().getStr() );
-        exit( 1 );
-    }
+    rImporter.set(xHandler, UNO_QUERY);
 }
 
 sal_Bool HwpImportFilter::filter( const Sequence< PropertyValue >& aDescriptor 
)

Reply via email to