summaryrefslogtreecommitdiff
path: root/basic/source/uno/namecont.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-14 09:31:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-14 11:29:43 +0200
commitcdcc2f365b6f9b88bd9d5dfd4e7c7131599f62ec (patch)
treec619bbd6a0b17049799cee247d682941ecd898e3 /basic/source/uno/namecont.cxx
parent48b9951779630da115086ce1fe8f4ffb5b0b4530 (diff)
loplugin:logexceptionnicely in accessibility..basic
Change-Id: I6e0b95b40e3d62db36352f3ea916f79f3dbc9084 Reviewed-on: https://gerrit.libreoffice.org/74018 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic/source/uno/namecont.cxx')
-rw-r--r--basic/source/uno/namecont.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx
index 080d35a6027d..95a05bca652c 100644
--- a/basic/source/uno/namecont.cxx
+++ b/basic/source/uno/namecont.cxx
@@ -419,9 +419,9 @@ BasicManager* SfxLibraryContainer::getBasicManager()
mpBasMgr = BasicManagerRepository::getDocumentBasicManager( xDocument );
}
}
- catch (const css::ucb::ContentCreationException& e)
+ catch (const css::ucb::ContentCreationException&)
{
- SAL_WARN( "basic", "SfxLibraryContainer::getBasicManager: " << e );
+ TOOLS_WARN_EXCEPTION( "basic", "SfxLibraryContainer::getBasicManager:" );
}
return mpBasMgr;
}
@@ -806,14 +806,14 @@ void SfxLibraryContainer::init_Impl( const OUString& rInitialDocumentURL,
xParser->setDocumentHandler( ::xmlscript::importLibraryContainer( pLibArray.get() ) );
xParser->parseStream( source );
}
- catch ( const xml::sax::SAXException& e )
+ catch ( const xml::sax::SAXException& )
{
- SAL_WARN("basic", e);
+ TOOLS_WARN_EXCEPTION( "basic", "" );
return;
}
- catch ( const io::IOException& e )
+ catch ( const io::IOException& )
{
- SAL_WARN("basic", e);
+ TOOLS_WARN_EXCEPTION( "basic", "" );
return;
}
@@ -1174,10 +1174,10 @@ void SfxLibraryContainer::init_Impl( const OUString& rInitialDocumentURL,
mxSFI->kill( aPrevFolder );
}
}
- catch(const Exception& e)
+ catch(const Exception&)
{
+ TOOLS_WARN_EXCEPTION("basic", "Upgrade of Basic installation failed somehow" );
bCleanUp = true;
- SAL_WARN("basic", "Upgrade of Basic installation failed somehow: " << e);
}
// #i93163