diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 15:56:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-16 13:31:26 +0200 |
commit | 889dc7bffa02236bf2ad56b382997771f0fcf3c6 (patch) | |
tree | e7fc2c8748972bb1ed4acb98fd92ff08a8670f7b /cui/source/customize | |
parent | 9a97a26511584f41c3753fa9536e1c4a8dce637a (diff) |
use more TOOLS_WARN_EXCEPTION
Change-Id: Ic21ea11ff106e0732bb8fa600ef39a549d7bda86
Reviewed-on: https://gerrit.libreoffice.org/77569
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source/customize')
-rw-r--r-- | cui/source/customize/CommandCategoryListBox.cxx | 3 | ||||
-rw-r--r-- | cui/source/customize/cfg.cxx | 12 |
2 files changed, 5 insertions, 10 deletions
diff --git a/cui/source/customize/CommandCategoryListBox.cxx b/cui/source/customize/CommandCategoryListBox.cxx index e361388943c4..1591e208b7cc 100644 --- a/cui/source/customize/CommandCategoryListBox.cxx +++ b/cui/source/customize/CommandCategoryListBox.cxx @@ -335,8 +335,7 @@ void CommandCategoryListBox::categorySelected(CuiConfigFunctionListBox* pFunctio } catch( css::uno::Exception const & ) { - css::uno::Any ex( cppu::getCaughtException() ); - SAL_WARN("cui.customize", "Caught some exception whilst retrieving browse nodes from factory... Exception: " << exceptionToString(ex)); + TOOLS_WARN_EXCEPTION("cui.customize", "Caught some exception whilst retrieving browse nodes from factory"); // TODO exception handling } diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index f9d67ec32ee3..e30cb708c99b 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -577,8 +577,7 @@ bool MenuSaveInData::Apply() } catch ( css::uno::Exception& ) { - css::uno::Any ex( cppu::getCaughtException() ); - SAL_WARN("cui.customize", "caught some other exception saving settings " << exceptionToString(ex)); + TOOLS_WARN_EXCEPTION("cui.customize", "caught some other exception saving settings"); } SetModified( false ); @@ -2422,8 +2421,7 @@ void ToolbarSaveInData::ApplyToolbar( SvxConfigEntry* pToolbar ) } catch ( css::uno::Exception const & ) { - css::uno::Any ex( cppu::getCaughtException() ); - SAL_WARN("cui.customize", "caught exception saving settings " << exceptionToString(ex)); + TOOLS_WARN_EXCEPTION("cui.customize", "caught exception saving settings"); } PersistChanges( GetConfigManager() ); @@ -2448,8 +2446,7 @@ void ToolbarSaveInData::CreateToolbar( SvxConfigEntry* pToolbar ) } catch ( css::uno::Exception const & ) { - css::uno::Any ex( cppu::getCaughtException() ); - SAL_WARN("cui.customize", "caught exception saving settings " << exceptionToString(ex)); + TOOLS_WARN_EXCEPTION("cui.customize", "caught exception saving settings"); } GetEntries()->push_back( pToolbar ); @@ -3156,8 +3153,7 @@ bool SvxIconSelectorDialog::ImportGraphic( const OUString& aURL ) } catch( uno::Exception const & ) { - css::uno::Any ex( cppu::getCaughtException() ); - SAL_WARN("cui.customize", "Caught exception importing XGraphic: " << exceptionToString(ex)); + TOOLS_WARN_EXCEPTION("cui.customize", "Caught exception importing XGraphic"); } return result; } |