Kaydet (Commit) e888ed18 authored tarafından Eike Rathke's avatar Eike Rathke

Extract the one getUserLanguage() call from UserInformation

After which we can ditch that.

Change-Id: I6027327b41d98bffd47324b4c6145c1eddca632a
Reviewed-on: https://gerrit.libreoffice.org/61733Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: Jenkins
üst d77446f1
......@@ -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 ) );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment