diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-26 14:59:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-27 06:09:29 +0000 |
commit | 883172375dbf5c0a79cbda5b615ff26ed27c78be (patch) | |
tree | 5d81ab1b28e7509a26148b602fd14f8c5c83642f /svx/source/smarttags | |
parent | a7ea18ffe715776cb0e2b39e98569c75605ee332 (diff) |
loplugin:expandablemethods in svx
Change-Id: I0d193ddf07cc0ddc89b6ce2df6eb71d44e49b631
Reviewed-on: https://gerrit.libreoffice.org/30295
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/smarttags')
-rw-r--r-- | svx/source/smarttags/SmartTagMgr.cxx | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/svx/source/smarttags/SmartTagMgr.cxx b/svx/source/smarttags/SmartTagMgr.cxx index 81f22238c536..6320d8f3d70b 100644 --- a/svx/source/smarttags/SmartTagMgr.cxx +++ b/svx/source/smarttags/SmartTagMgr.cxx @@ -74,14 +74,6 @@ void SmartTagMgr::Init( const OUString& rConfigurationGroupName ) RegisterListener(); LoadLibraries(); } -void SmartTagMgr::CreateBreakIterator() const -{ - if ( !mxBreakIter.is() ) - { - // get the break iterator - mxBreakIter.set( BreakIterator::create(mxContext) ); - } -} /** Dispatches the recognize call to all installed smart tag recognizers */ @@ -108,7 +100,11 @@ void SmartTagMgr::RecognizeString( const OUString& rText, if ( bCallRecognizer ) { - CreateBreakIterator(); + // get the break iterator + if ( !mxBreakIter.is() ) + { + mxBreakIter.set( BreakIterator::create(mxContext) ); + } i->recognize( rText, nStart, nLen, smarttags::SmartTagRecognizerMode_PARAGRAPH, rLocale, xMarkup, maApplicationName, xController, |