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.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
parent
698fd3fc03
commit
8950ecd071
1 changed files with 4 additions and 11 deletions
|
@ -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\n", WRITER_IMPORTER_NAME.toUtf8().getStr() );
|
||||
exit( 1 );
|
||||
}
|
||||
rImporter.set(xHandler, UNO_QUERY);
|
||||
}
|
||||
|
||||
sal_Bool HwpImportFilter::filter( const Sequence< PropertyValue >& aDescriptor )
|
||||
|
|
Loading…
Reference in a new issue