summaryrefslogtreecommitdiff
path: root/ucb/source/regexp
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/regexp')
-rw-r--r--ucb/source/regexp/regexp.cxx26
1 files changed, 5 insertions, 21 deletions
diff --git a/ucb/source/regexp/regexp.cxx b/ucb/source/regexp/regexp.cxx
index f2c53e8691c7..fae2aee293be 100644
--- a/ucb/source/regexp/regexp.cxx
+++ b/ucb/source/regexp/regexp.cxx
@@ -210,21 +210,13 @@ void appendStringLiteral(OUStringBuffer * pBuffer,
}
-OUString Regexp::getRegexp(bool bReverse) const
+OUString Regexp::getRegexp() const
{
if (m_bTranslation)
{
OUStringBuffer aBuffer;
- if (bReverse)
- {
- if (!m_aReversePrefix.isEmpty())
- appendStringLiteral(&aBuffer, m_aReversePrefix);
- }
- else
- {
- if (!m_aPrefix.isEmpty())
- appendStringLiteral(&aBuffer, m_aPrefix);
- }
+ if (!m_aPrefix.isEmpty())
+ appendStringLiteral(&aBuffer, m_aPrefix);
switch (m_eKind)
{
case KIND_PREFIX:
@@ -244,16 +236,8 @@ OUString Regexp::getRegexp(bool bReverse) const
break;
}
aBuffer.append("->");
- if (bReverse)
- {
- if (!m_aPrefix.isEmpty())
- appendStringLiteral(&aBuffer, m_aPrefix);
- }
- else
- {
- if (!m_aReversePrefix.isEmpty())
- appendStringLiteral(&aBuffer, m_aReversePrefix);
- }
+ if (!m_aReversePrefix.isEmpty())
+ appendStringLiteral(&aBuffer, m_aReversePrefix);
aBuffer.append("\\1");
return aBuffer.makeStringAndClear();
}