From 1b75f95f9bfa2f4f5ddd4c6b2ef6c86576d9c92b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 14 Jun 2019 15:29:26 +0200 Subject: loplugin:logexceptionnicely in desktop Change-Id: I19f70b0e9d1ca2bbcd2595af24f2e15766d14b33 Reviewed-on: https://gerrit.libreoffice.org/74046 Tested-by: Jenkins Reviewed-by: Noel Grandin --- desktop/source/app/langselect.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'desktop/source/app/langselect.cxx') diff --git a/desktop/source/app/langselect.cxx b/desktop/source/app/langselect.cxx index 86ce7434e6ab..57f7d3831ff9 100644 --- a/desktop/source/app/langselect.cxx +++ b/desktop/source/app/langselect.cxx @@ -38,6 +38,7 @@ #include #include #include +#include #include @@ -90,8 +91,8 @@ bool prepareLocale() { officecfg::Office::Linguistic::General::UILocale::set( "", batch); batch->commit(); - } catch (css::uno::Exception & e) { - SAL_WARN("desktop.app", "ignoring " << e); + } catch (const css::uno::Exception &) { + TOOLS_WARN_EXCEPTION("desktop.app", "ignoring"); } } } @@ -123,8 +124,8 @@ bool prepareLocale() { comphelper::ConfigurationChanges::create()); officecfg::Setup::L10N::ooLocale::set(locale, batch); batch->commit(); - } catch (css::uno::Exception & e) { - SAL_WARN("desktop.app", "ignoring " << e); + } catch (const css::uno::Exception &) { + TOOLS_WARN_EXCEPTION("desktop.app", "ignoring"); } } MsLangId::setConfiguredSystemUILanguage(tag.getLanguageType(false)); -- cgit