diff options
Diffstat (limited to 'include/i18nlangtag/languagetag.hxx')
-rw-r--r-- | include/i18nlangtag/languagetag.hxx | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/include/i18nlangtag/languagetag.hxx b/include/i18nlangtag/languagetag.hxx index aef59d0d738c..50cfef553431 100644 --- a/include/i18nlangtag/languagetag.hxx +++ b/include/i18nlangtag/languagetag.hxx @@ -484,19 +484,22 @@ public: */ static com::sun::star::lang::Locale convertToLocaleWithFallback( const OUString& rBcp47 ); + typedef ::boost::shared_ptr< LanguageTagImpl > ImplPtr; + private: - mutable com::sun::star::lang::Locale maLocale; - mutable OUString maBcp47; - mutable LanguageType mnLangID; - mutable boost::shared_ptr< LanguageTagImpl > mpImpl; - bool mbSystemLocale : 1; - mutable bool mbInitializedBcp47 : 1; - mutable bool mbInitializedLocale : 1; - mutable bool mbInitializedLangID : 1; - bool mbIsFallback : 1; - - LanguageTagImpl* getImpl() const; + mutable com::sun::star::lang::Locale maLocale; + mutable OUString maBcp47; + mutable LanguageType mnLangID; + mutable ImplPtr mpImpl; + bool mbSystemLocale : 1; + mutable bool mbInitializedBcp47 : 1; + mutable bool mbInitializedLocale : 1; + mutable bool mbInitializedLangID : 1; + bool mbIsFallback : 1; + + ImplPtr getImpl() const; + ImplPtr registerImpl() const; void syncFromImpl(); void convertLocaleToBcp47(); |