diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-02-27 10:07:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-02-27 13:53:03 +0000 |
commit | 7f335799b34f3454649f0045bdab6f98baa84ed8 (patch) | |
tree | 420a8a87212fd8f99ad0c95b73d26368a9275359 /sw | |
parent | 8e89aa77056c4b233c24ad3a93c6d4a8159fcf16 (diff) |
OSL_ENSURE->assert
Change-Id: I21edad9865717674217d2d10b9ec2a689d9d65f9
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/bastyp/breakit.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/bastyp/breakit.cxx b/sw/source/core/bastyp/breakit.cxx index 69436e20d778..5e7a22c19271 100644 --- a/sw/source/core/bastyp/breakit.cxx +++ b/sw/source/core/bastyp/breakit.cxx @@ -56,13 +56,13 @@ SwBreakIt::SwBreakIt( const uno::Reference<uno::XComponentContext> & rxContext ) : m_xContext(rxContext) , aForbiddenLang(LANGUAGE_DONTKNOW) { - OSL_ENSURE( m_xContext.is(), "SwBreakIt: no MultiServiceFactory" ); + assert(m_xContext.is() && "SwBreakIt: no MultiServiceFactory"); } void SwBreakIt::createBreakIterator() const { - if ( m_xContext.is() && !xBreak.is() ) - xBreak.set( i18n::BreakIterator::create(m_xContext) ); + if (!xBreak.is()) + xBreak.set(i18n::BreakIterator::create(m_xContext)); } void SwBreakIt::GetLocale_( const LanguageType aLang ) @@ -83,7 +83,7 @@ void SwBreakIt::GetLocale_( const LanguageTag& rLanguageTag ) void SwBreakIt::GetForbidden_( const LanguageType aLang ) { - LocaleDataWrapper aWrap( m_xContext, GetLanguageTag( aLang ) ); + LocaleDataWrapper aWrap(m_xContext, GetLanguageTag(aLang)); aForbiddenLang = aLang; m_xForbidden.reset(new i18n::ForbiddenCharacters(aWrap.getForbiddenCharacters())); |