summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/SfxDocumentMetaData.cxx2
-rw-r--r--sfx2/source/doc/doctemplates.cxx2
-rw-r--r--sfx2/source/menu/thessubmenu.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx b/sfx2/source/doc/SfxDocumentMetaData.cxx
index f1e96c6645d0..fe08d67a0fcd 100644
--- a/sfx2/source/doc/SfxDocumentMetaData.cxx
+++ b/sfx2/source/doc/SfxDocumentMetaData.cxx
@@ -1524,7 +1524,7 @@ void SAL_CALL
SfxDocumentMetaData::setLanguage(const css::lang::Locale & the_value)
throw (css::uno::RuntimeException)
{
- OUString text( LanguageTag( the_value).getBcp47( false));
+ OUString text( LanguageTag::convertToBcp47( the_value, false));
setMetaTextAndNotify("dc:language", text);
}
diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx
index 78d8ac256ea8..136acac9b549 100644
--- a/sfx2/source/doc/doctemplates.cxx
+++ b/sfx2/source/doc/doctemplates.cxx
@@ -401,7 +401,7 @@ void SfxDocTplService_Impl::init_Impl()
getDefaultLocale();
// convert locale to string
- OUString aLang = LanguageTag( maLocale).getBcp47();
+ OUString aLang = LanguageTag::convertToBcp47( maLocale);
// set maRootContent to the root of the templates hierarchy. Create the
// entry if necessary
diff --git a/sfx2/source/menu/thessubmenu.cxx b/sfx2/source/menu/thessubmenu.cxx
index 3c22420ba4fd..7c56a19b2d58 100644
--- a/sfx2/source/menu/thessubmenu.cxx
+++ b/sfx2/source/menu/thessubmenu.cxx
@@ -53,7 +53,7 @@ void SfxThesSubMenuHelper::GetLocale(
xub_StrLen nDelimPos )
{
String aIsoLang( rLookUpString.Copy( nDelimPos + 1) );
- rLocale = LanguageTag( aIsoLang).getLocale();
+ rLocale = LanguageTag::convertToLocale( aIsoLang);
}