diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-04-19 11:20:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-04-19 21:45:02 +0200 |
commit | 6e531f337b27e0979cce844c013352d05ef5281e (patch) | |
tree | 0c4820c1ce0b8e9f05707a3d0ff38d49f7016cdd /sw/source/core/doc/doctxm.cxx | |
parent | ca8f4a66e44aed731646066241cf2225bb9f8c2a (diff) |
SwBreakIt::m_xBreak is always available
this all is a hold over from the initial tentitive changeover to using it in
the first place
Change-Id: I70e28023798d8ea637c61f9fac252bc698e8100d
Reviewed-on: https://gerrit.libreoffice.org/36683
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/source/core/doc/doctxm.cxx')
-rw-r--r-- | sw/source/core/doc/doctxm.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx index aa6d3b15cf6a..9280edf5199e 100644 --- a/sw/source/core/doc/doctxm.cxx +++ b/sw/source/core/doc/doctxm.cxx @@ -1160,12 +1160,8 @@ void SwTOXBaseSection::UpdateMarks( const SwTOXInternational& rIntl, if(TOX_INDEX == eTOXTyp) { // index entry mark - lang::Locale aLocale; - if ( g_pBreakIt->GetBreakIter().is() ) - { - aLocale = g_pBreakIt->GetLocale( - pTOXSrc->GetLang( pTextMark->GetStart() ) ); - } + assert(g_pBreakIt); + lang::Locale aLocale = g_pBreakIt->GetLocale(pTOXSrc->GetLang(pTextMark->GetStart())); pBase = new SwTOXIndex( *pTOXSrc, pTextMark, GetOptions(), FORM_ENTRY, rIntl, aLocale ); |