diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-06 08:50:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-06 09:54:25 +0200 |
commit | 24eae7bd702f3f6dd790be7ac38ac16e9fe6a375 (patch) | |
tree | 56398264184709e84517c2e843aa3a0894cc1c51 /sw/source/core/txtnode/txtedt.cxx | |
parent | fad919eb0d30b2303193e1c00ba765514957652c (diff) |
clang-tidy performance-unnecessary-value-param
Change-Id: I69247498e13331f6ef84afeb242479f8fb1178a8
Reviewed-on: https://gerrit.libreoffice.org/60068
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/txtnode/txtedt.cxx')
-rw-r--r-- | sw/source/core/txtnode/txtedt.cxx | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx index 19a239c7cca8..46fe039ee514 100644 --- a/sw/source/core/txtnode/txtedt.cxx +++ b/sw/source/core/txtnode/txtedt.cxx @@ -738,19 +738,18 @@ SwScanner::SwScanner( const SwTextNode& rNd, const OUString& rText, { } -SwScanner::SwScanner( - std::function<LanguageType (sal_Int32, sal_Int32, bool)> const pGetLangOfChar, - const OUString& rText, - const LanguageType* pLang, const ModelToViewHelper& rConvMap, - sal_uInt16 nType, sal_Int32 nStart, sal_Int32 nEnde, bool bClp ) - : m_pGetLangOfChar( pGetLangOfChar ) +SwScanner::SwScanner(std::function<LanguageType(sal_Int32, sal_Int32, bool)> const& pGetLangOfChar, + const OUString& rText, const LanguageType* pLang, + const ModelToViewHelper& rConvMap, sal_uInt16 nType, sal_Int32 nStart, + sal_Int32 nEnde, bool bClp) + : m_pGetLangOfChar(pGetLangOfChar) , m_aPreDashReplacementText(rText) - , m_pLanguage( pLang ) - , m_ModelToView( rConvMap ) - , m_nLength( 0 ) - , m_nOverriddenDashCount( 0 ) - , m_nWordType( nType ) - , m_bClip( bClp ) + , m_pLanguage(pLang) + , m_ModelToView(rConvMap) + , m_nLength(0) + , m_nOverriddenDashCount(0) + , m_nWordType(nType) + , m_bClip(bClp) { m_nStartPos = m_nBegin = nStart; m_nEndPos = nEnde; |