diff options
-rw-r--r-- | include/xmloff/xmlnumfe.hxx | 1 | ||||
-rw-r--r-- | xmloff/source/style/xmlnumfe.cxx | 9 |
2 files changed, 1 insertions, 9 deletions
diff --git a/include/xmloff/xmlnumfe.hxx b/include/xmloff/xmlnumfe.hxx index 28bfe8d1a2ad..2949aed76679 100644 --- a/include/xmloff/xmlnumfe.hxx +++ b/include/xmloff/xmlnumfe.hxx @@ -53,7 +53,6 @@ private: OUStringBuffer sTextContent; bool bHasText; std::unique_ptr<SvXMLNumUsedList_Impl> pUsedList; - std::unique_ptr<CharClass> pCharClass; std::unique_ptr<LocaleDataWrapper> pLocaleData; SAL_DLLPRIVATE void AddCalendarAttr_Impl( const OUString& rCalendar ); diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx index 42a918df4573..1f0639febaa5 100644 --- a/xmloff/source/style/xmlnumfe.cxx +++ b/xmloff/source/style/xmlnumfe.cxx @@ -221,8 +221,6 @@ SvXMLNumFmtExport::SvXMLNumFmtExport( if ( pFormatter ) { - pCharClass.reset( new CharClass( pFormatter->GetComponentContext(), - pFormatter->GetLanguageTag() ) ); pLocaleData.reset( new LocaleDataWrapper( pFormatter->GetComponentContext(), pFormatter->GetLanguageTag() ) ); } @@ -230,7 +228,6 @@ SvXMLNumFmtExport::SvXMLNumFmtExport( { LanguageTag aLanguageTag( MsLangId::getSystemLanguage() ); - pCharClass.reset( new CharClass( rExport.getComponentContext(), aLanguageTag ) ); pLocaleData.reset( new LocaleDataWrapper( rExport.getComponentContext(), aLanguageTag ) ); } @@ -254,8 +251,6 @@ SvXMLNumFmtExport::SvXMLNumFmtExport( if ( pFormatter ) { - pCharClass.reset( new CharClass( pFormatter->GetComponentContext(), - pFormatter->GetLanguageTag() ) ); pLocaleData.reset( new LocaleDataWrapper( pFormatter->GetComponentContext(), pFormatter->GetLanguageTag() ) ); } @@ -263,7 +258,6 @@ SvXMLNumFmtExport::SvXMLNumFmtExport( { LanguageTag aLanguageTag( MsLangId::getSystemLanguage() ); - pCharClass.reset( new CharClass( rExport.getComponentContext(), aLanguageTag ) ); pLocaleData.reset( new LocaleDataWrapper( rExport.getComponentContext(), aLanguageTag ) ); } @@ -895,8 +889,7 @@ bool SvXMLNumFmtExport::WriteTextWithCurrency_Impl( const OUString& rString, OUString sCurString, sDummy; pFormatter->GetCompatibilityCurrency( sCurString, sDummy ); - pCharClass.reset( new CharClass( pFormatter->GetComponentContext(), aLanguageTag ) ); - OUString sUpperStr = pCharClass->uppercase(rString); + OUString sUpperStr = pFormatter->GetCharClass()->uppercase(rString); sal_Int32 nPos = lcl_FindSymbol( sUpperStr, sCurString ); if ( nPos >= 0 ) { |