diff --git a/sfx2/source/appl/linkmgr2.cxx b/sfx2/source/appl/linkmgr2.cxx index 9564a1857208..4f8a7a28b512 100644 --- a/sfx2/source/appl/linkmgr2.cxx +++ b/sfx2/source/appl/linkmgr2.cxx @@ -34,7 +34,7 @@ #include #include #include -#include +#include #include #include "fileobj.hxx" @@ -608,8 +608,7 @@ sal_Bool SvxInternalLink::Connect( sfx2::SvBaseLink* pLink ) { // first only loop over the DocumentShells the shells and find those // with the name: - com::sun::star::lang::Locale aLocale; - MsLangId::convertLanguageToLocale( LANGUAGE_SYSTEM, aLocale ); + com::sun::star::lang::Locale aLocale( LanguageTag( LANGUAGE_SYSTEM).getLocale()); CharClass aCC( aLocale ); TypeId aType( TYPE(SfxObjectShell) );