summaryrefslogtreecommitdiff
path: root/include/unotools
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-10-27 14:48:26 +0200
committerEike Rathke <erack@redhat.com>2017-10-27 18:29:43 +0200
commit51a7ae749de90485f3b15a3f935f0f11d5aeff5b (patch)
tree2c188f081e6c72dc250861a70d94a82acfcd31dd /include/unotools
parent2c1ab132685bee9251901be38e113e129c2c3fce (diff)
Let LocaleDataWrapper::getLocaleItem() return LocaleDataItem2&, tdf#81671
Change-Id: I16cfe81dd3ce0c8c2e905d55bea13df134c7a398
Diffstat (limited to 'include/unotools')
-rw-r--r--include/unotools/localedatawrapper.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/unotools/localedatawrapper.hxx b/include/unotools/localedatawrapper.hxx
index be53b7558add..398c990fe53b 100644
--- a/include/unotools/localedatawrapper.hxx
+++ b/include/unotools/localedatawrapper.hxx
@@ -60,7 +60,7 @@ class UNOTOOLS_DLLPUBLIC LocaleDataWrapper
LanguageTag maLanguageTag;
std::shared_ptr< css::i18n::Calendar2 > xDefaultCalendar;
std::shared_ptr< css::i18n::Calendar2 > xSecondaryCalendar;
- css::i18n::LocaleDataItem aLocaleDataItem;
+ css::i18n::LocaleDataItem2 aLocaleDataItem;
css::uno::Sequence< OUString > aReservedWordSeq;
css::uno::Sequence< OUString > aDateAcceptancePatterns;
css::uno::Sequence< sal_Int32 > aGrouping;
@@ -82,7 +82,7 @@ class UNOTOOLS_DLLPUBLIC LocaleDataWrapper
{
bool operator()(const css::lang::Locale& rLocale1, const css::lang::Locale& rLocale2) const;
};
- mutable std::map<css::lang::Locale, css::i18n::LocaleDataItem, Locale_Compare> maDataItemCache;
+ mutable std::map<css::lang::Locale, css::i18n::LocaleDataItem2, Locale_Compare> maDataItemCache;
// whenever Locale changes
void invalidateData();
@@ -144,7 +144,8 @@ public:
// Wrapper implementations of service LocaleData
css::i18n::LanguageCountryInfo getLanguageCountryInfo() const;
- const css::i18n::LocaleDataItem& getLocaleItem() const;
+ /// NOTE: this wraps XLocaleData5::getLocaleItem2() in fact.
+ const css::i18n::LocaleDataItem2& getLocaleItem() const;
/// NOTE: this wraps XLocaleData3::getAllCalendars2() in fact.
css::uno::Sequence< css::i18n::Calendar2 > getAllCalendars() const;
/// NOTE: this wraps XLocaleData2::getAllCurrencies2() in fact.