diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-23 09:47:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-24 08:36:11 +0200 |
commit | 2629aac31142449312f77c5843ea209cc810acb4 (patch) | |
tree | 2d8e11d8b346b50a48f80cf1c28fed6962831730 /svx/source/smarttags | |
parent | 4e51d68dc3595dae8b2519e0a023c9b1ca13a8fd (diff) |
clang-tidy performance-unnecessary-copy-init in svx
Change-Id: I27f4dd0cb08f9b62496a1c51eed732a678e1c2e5
Reviewed-on: https://gerrit.libreoffice.org/62252
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/smarttags')
-rw-r--r-- | svx/source/smarttags/SmartTagMgr.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/svx/source/smarttags/SmartTagMgr.cxx b/svx/source/smarttags/SmartTagMgr.cxx index b7cb3a3dbf2f..7d2ae7ea4365 100644 --- a/svx/source/smarttags/SmartTagMgr.cxx +++ b/svx/source/smarttags/SmartTagMgr.cxx @@ -82,10 +82,8 @@ void SmartTagMgr::RecognizeString( const OUString& rText, const lang::Locale& rLocale, sal_uInt32 nStart, sal_uInt32 nLen ) const { - for (const auto & i : maRecognizerList) + for (const Reference < smarttags::XSmartTagRecognizer >& xRecognizer : maRecognizerList) { - Reference < smarttags::XSmartTagRecognizer > xRecognizer = i; - // if all smart tag types supported by this recognizer have been // disabled, we do not have to call the recognizer: bool bCallRecognizer = false; @@ -104,7 +102,7 @@ void SmartTagMgr::RecognizeString( const OUString& rText, { mxBreakIter.set( BreakIterator::create(mxContext) ); } - i->recognize( rText, nStart, nLen, + xRecognizer->recognize( rText, nStart, nLen, smarttags::SmartTagRecognizerMode_PARAGRAPH, rLocale, xMarkup, maApplicationName, xController, mxBreakIter ); |