diff options
author | Eike Rathke <erack@redhat.com> | 2018-10-12 22:27:07 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-10-13 00:05:35 +0200 |
commit | e888ed185e9e4b254409959c7978e4d84f70d846 (patch) | |
tree | 6d0edd8d156879d35c891992b391987fb42fe50c | |
parent | d77446f12b2f72a208edcb4765b38a7e30c70962 (diff) |
Extract the one getUserLanguage() call from UserInformation
After which we can ditch that.
Change-Id: I6027327b41d98bffd47324b4c6145c1eddca632a
Reviewed-on: https://gerrit.libreoffice.org/61733
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
-rw-r--r-- | dbaccess/source/core/dataaccess/ModelImpl.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/core/dataaccess/ModelImpl.cxx b/dbaccess/source/core/dataaccess/ModelImpl.cxx index abdd5242d27a..64bc6b16e8bd 100644 --- a/dbaccess/source/core/dataaccess/ModelImpl.cxx +++ b/dbaccess/source/core/dataaccess/ModelImpl.cxx @@ -55,6 +55,7 @@ #include <vcl/errcode.hxx> #include <tools/urlobj.hxx> #include <unotools/sharedunocomponent.hxx> +#include <unotools/configmgr.hxx> #include <algorithm> @@ -690,9 +691,8 @@ const Reference< XNumberFormatsSupplier > & ODatabaseModelImpl::getNumberFormats { if (!m_xNumberFormatsSupplier.is()) { - // the arguments : the locale of the current user - UserInformation aUserInfo; - Locale aLocale = aUserInfo.getUserLanguage(); + // the arguments : the work locale of the current user + Locale aLocale( LanguageTag::convertToLocale( utl::ConfigManager::getWorkLocale(), false)); m_xNumberFormatsSupplier.set( NumberFormatsSupplier::createWithLocale( m_aContext, aLocale ) ); } |