diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-07 08:49:37 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-09-07 10:04:44 +0200 |
commit | c158c00489d35af7f5f9278b8ee545678d6a42e5 (patch) | |
tree | eab18b26c29210979031ef6b9ef58ce0e0575664 /ucb/source/regexp | |
parent | 5e9982668224345f901631d664985e823530e05a (diff) |
loplugin:constantparam in framework..vbahelper
Change-Id: I592f73012ae8a4df8488ef04dc0956d9400625bc
Diffstat (limited to 'ucb/source/regexp')
-rw-r--r-- | ucb/source/regexp/regexp.cxx | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/ucb/source/regexp/regexp.cxx b/ucb/source/regexp/regexp.cxx index 28e59401856a..11ee8fa85f13 100644 --- a/ucb/source/regexp/regexp.cxx +++ b/ucb/source/regexp/regexp.cxx @@ -77,8 +77,7 @@ bool matchStringIgnoreCase(sal_Unicode const ** pBegin, } -bool Regexp::matches(OUString const & rString, - OUString * pTranslation, bool * pTranslated) const +bool Regexp::matches(OUString const & rString) const { sal_Unicode const * pBegin = rString.getStr(); sal_Unicode const * pEnd = pBegin + rString.getLength(); @@ -88,7 +87,6 @@ bool Regexp::matches(OUString const & rString, sal_Unicode const * p = pBegin; if (matchStringIgnoreCase(&p, pEnd, m_aPrefix)) { - sal_Unicode const * pBlock1Begin = p; sal_Unicode const * pBlock1End = pEnd; sal_Unicode const * pBlock2Begin = nullptr; @@ -133,30 +131,6 @@ bool Regexp::matches(OUString const & rString, } break; } - - if (bMatches) - { - if (m_bTranslation) - { - if (pTranslation) - { - OUStringBuffer aBuffer(m_aReversePrefix); - aBuffer.append(pBlock1Begin, pBlock1End - pBlock1Begin); - aBuffer.append(m_aInfix); - aBuffer.append(pBlock2Begin, pBlock2End - pBlock2Begin); - *pTranslation = aBuffer.makeStringAndClear(); - } - if (pTranslated) - *pTranslated = true; - } - else - { - if (pTranslation) - *pTranslation = rString; - if (pTranslated) - *pTranslated = false; - } - } } return bMatches; |