diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-12 16:31:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-13 06:12:00 +0000 |
commit | c3586b684c58e06cd80dea87d7681354acfec80b (patch) | |
tree | 09e1b3caab55f1c9ecd4c2559250b42892fd5ee7 /cui/source/options | |
parent | a005fbeddc4e615cfff56a9bd84355f8d42c1c8c (diff) |
OSL_TRACE->SAL in chart2..oox
Change-Id: I133a6441824bfbefcfcda130119b5c5d706f86b2
Reviewed-on: https://gerrit.libreoffice.org/31907
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source/options')
-rw-r--r-- | cui/source/options/optinet2.cxx | 42 | ||||
-rw-r--r-- | cui/source/options/optupdt.cxx | 3 |
2 files changed, 15 insertions, 30 deletions
diff --git a/cui/source/options/optinet2.cxx b/cui/source/options/optinet2.cxx index 064764916ac3..34a5be87667d 100644 --- a/cui/source/options/optinet2.cxx +++ b/cui/source/options/optinet2.cxx @@ -290,19 +290,15 @@ void SvxProxyTabPage::ReadConfigData_Impl() m_pNoProxyForED->SetText( aStringValue ); } } - catch (const container::NoSuchElementException&) { - OSL_TRACE( "SvxProxyTabPage::ReadConfigData_Impl: NoSuchElementException caught" ); + SAL_WARN("cui.options", "SvxProxyTabPage::ReadConfigData_Impl: NoSuchElementException caught" ); } - catch (const css::lang::WrappedTargetException &) { - OSL_TRACE( "SvxProxyTabPage::ReadConfigData_Impl: WrappedTargetException caught" ); + SAL_WARN("cui.options", "SvxProxyTabPage::ReadConfigData_Impl: WrappedTargetException caught" ); } - catch (const RuntimeException &) { - OSL_TRACE( "SvxProxyTabPage::ReadConfigData_Impl: RuntimeException caught" ); + SAL_WARN("cui.options", "SvxProxyTabPage::ReadConfigData_Impl: RuntimeException caught" ); } - } void SvxProxyTabPage::ReadConfigDefaults_Impl() @@ -351,16 +347,14 @@ void SvxProxyTabPage::ReadConfigDefaults_Impl() } catch (const beans::UnknownPropertyException &) { - OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: UnknownPropertyException caught" ); + SAL_WARN("cui.options", "SvxProxyTabPage::RestoreConfigDefaults_Impl: UnknownPropertyException caught" ); } - catch (const css::lang::WrappedTargetException &) { - OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: WrappedTargetException caught" ); + SAL_WARN("cui.options", "SvxProxyTabPage::RestoreConfigDefaults_Impl: WrappedTargetException caught" ); } - catch (const RuntimeException &) { - OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: RuntimeException caught" ); + SAL_WARN("cui.options", "SvxProxyTabPage::RestoreConfigDefaults_Impl: RuntimeException caught" ); } } @@ -382,19 +376,16 @@ void SvxProxyTabPage::RestoreConfigDefaults_Impl() Reference< util::XChangesBatch > xChangesBatch(m_xConfigurationUpdateAccess, UNO_QUERY_THROW); xChangesBatch->commitChanges(); } - catch (const beans::UnknownPropertyException &) { - OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: UnknownPropertyException caught" ); + SAL_WARN("cui.options", "SvxProxyTabPage::RestoreConfigDefaults_Impl: UnknownPropertyException caught" ); } - catch (const css::lang::WrappedTargetException &) { - OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: WrappedTargetException caught" ); + SAL_WARN("cui.options", "SvxProxyTabPage::RestoreConfigDefaults_Impl: WrappedTargetException caught" ); } - catch (const RuntimeException &) { - OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: RuntimeException caught" ); + SAL_WARN("cui.options", "SvxProxyTabPage::RestoreConfigDefaults_Impl: RuntimeException caught" ); } } @@ -480,25 +471,20 @@ bool SvxProxyTabPage::FillItemSet(SfxItemSet* ) Reference< util::XChangesBatch > xChangesBatch(m_xConfigurationUpdateAccess, UNO_QUERY_THROW); xChangesBatch->commitChanges(); } - catch (const css::lang::IllegalArgumentException &) { - OSL_TRACE( "SvxProxyTabPage::FillItemSet: IllegalArgumentException caught" ); + SAL_WARN("cui.options", "SvxProxyTabPage::FillItemSet: IllegalArgumentException caught" ); } - catch (const beans::UnknownPropertyException &) { - OSL_TRACE( "SvxProxyTabPage::FillItemSet: UnknownPropertyException caught" ); + SAL_WARN("cui.options", "SvxProxyTabPage::FillItemSet: UnknownPropertyException caught" ); } - catch (const beans::PropertyVetoException &) { - OSL_TRACE( "SvxProxyTabPage::FillItemSet: PropertyVetoException caught" ); + SAL_WARN("cui.options", "SvxProxyTabPage::FillItemSet: PropertyVetoException caught" ); } - catch (const css::lang::WrappedTargetException &) { - OSL_TRACE( "SvxProxyTabPage::FillItemSet: WrappedTargetException caught" ); + SAL_WARN("cui.options", "SvxProxyTabPage::FillItemSet: WrappedTargetException caught" ); } - catch (const RuntimeException &) { - OSL_TRACE( "SvxProxyTabPage::FillItemSet: RuntimeException caught" ); + SAL_WARN("cui.options", "SvxProxyTabPage::FillItemSet: RuntimeException caught" ); } return bModified; diff --git a/cui/source/options/optupdt.cxx b/cui/source/options/optupdt.cxx index 36e2b998c879..121eed77e551 100644 --- a/cui/source/options/optupdt.cxx +++ b/cui/source/options/optupdt.cxx @@ -414,8 +414,7 @@ IMPL_LINK_NOARG(SvxOnlineUpdateTabPage, CheckNowHdl_Impl, Button*, void) } catch( const uno::Exception& e ) { - OSL_TRACE( "Caught exception: %s\n thread terminated.\n", - OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr()); + SAL_WARN("cui.options", "Caught exception, thread terminated. " << e.Message); } } |