summaryrefslogtreecommitdiff
path: root/desktop/source/app/langselect.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-14 15:29:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-15 12:25:22 +0200
commit1b75f95f9bfa2f4f5ddd4c6b2ef6c86576d9c92b (patch)
tree079370ffe1f419d32d750b17956224ee0306b96b /desktop/source/app/langselect.cxx
parentec87e11f0e4bb6f53eb0c5d2575f590aea95269f (diff)
loplugin:logexceptionnicely in desktop
Change-Id: I19f70b0e9d1ca2bbcd2595af24f2e15766d14b33 Reviewed-on: https://gerrit.libreoffice.org/74046 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/source/app/langselect.cxx')
-rw-r--r--desktop/source/app/langselect.cxx9
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));