diff options
Diffstat (limited to 'desktop/source/app/langselect.cxx')
-rw-r--r-- | desktop/source/app/langselect.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
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 <sal/types.h> #include <svl/languageoptions.hxx> #include <svtools/langhelp.hxx> +#include <tools/diagnose_ex.h> #include <app.hxx> @@ -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)); |