diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-21 13:09:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-21 15:02:53 +0200 |
commit | 3ffb7efa95d900db6fdd7d8443535988adb2be70 (patch) | |
tree | 12d5a6d04a847f9cb749a2d4755dbc78128200d1 /i18nutil | |
parent | 75c3fa3cfc6da7721f81c96c43e7f020346f196a (diff) |
remove some unnecessary OUString::intern
Change-Id: Ia0f41dfc8a00c115ad544b8236d751e6b2dae5ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117577
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18nutil')
-rw-r--r-- | i18nutil/source/utility/paper.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/i18nutil/source/utility/paper.cxx b/i18nutil/source/utility/paper.cxx index 042a82e72f93..995f60ce8c3e 100644 --- a/i18nutil/source/utility/paper.cxx +++ b/i18nutil/source/utility/paper.cxx @@ -349,8 +349,9 @@ PaperInfo PaperInfo::getSystemDefaultPaper() if (aLocaleStr.isEmpty()) aLocaleStr = officecfg::System::L10N::Locale::get(); + static const OUStringLiteral EN_US = u"en-US"; if (aLocaleStr.isEmpty()) - aLocaleStr = OUString::intern(RTL_CONSTASCII_USTRINGPARAM("en-US")); + aLocaleStr = EN_US; // convert locale string to locale struct css::lang::Locale aSysLocale; |