diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-02-27 10:34:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-03-01 14:15:46 +0000 |
commit | 14b4fcf0d8c761ad1679b0d6e765ebd7f3a90dbd (patch) | |
tree | 7024a170f16024c3f8ef02780e98cd4b0e580774 /sw/inc | |
parent | a42d9c5b541d637dcf24086e30f341b30e03c4c7 (diff) |
reorg SwBreakIt to just create it at the start
Change-Id: Ie2b725e4e0c8d9b581ced74f9cdd08d97ab90e46
Reviewed-on: https://gerrit.libreoffice.org/34746
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/breakit.hxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sw/inc/breakit.hxx b/sw/inc/breakit.hxx index 6b92d8052f27..0bb13f08f8a0 100644 --- a/sw/inc/breakit.hxx +++ b/sw/inc/breakit.hxx @@ -33,7 +33,7 @@ enum class SvtScriptType; class SW_DLLPUBLIC SwBreakIt { css::uno::Reference< css::uno::XComponentContext > m_xContext; - mutable css::uno::Reference< css::i18n::XBreakIterator > xBreak; + css::uno::Reference<css::i18n::XBreakIterator> m_xBreak; std::unique_ptr<LanguageTag> m_xLanguageTag; ///< language tag of the current locale std::unique_ptr<css::i18n::ForbiddenCharacters> m_xForbidden; @@ -44,8 +44,6 @@ class SW_DLLPUBLIC SwBreakIt void GetLocale_( const LanguageTag& rLanguageTag ); void GetForbidden_( const LanguageType aLang ); - void createBreakIterator() const; - SwBreakIt(SwBreakIt const&) = delete; SwBreakIt& operator=(SwBreakIt const&) = delete; @@ -63,8 +61,7 @@ public: css::uno::Reference< css::i18n::XBreakIterator > const & GetBreakIter() { - createBreakIterator(); - return xBreak; + return m_xBreak; } const css::lang::Locale& GetLocale( const LanguageType aLang ) |