summaryrefslogtreecommitdiff
path: root/ucb/source
diff options
context:
space:
mode:
authorChr. Rossmanith <ChrRossmanith@gmx.de>2013-04-06 16:50:34 +0200
committerChr. Rossmanith <ChrRossmanith@gmx.de>2013-04-06 16:50:34 +0200
commita07505865b624b9c9fc5a33e7604ba982302c794 (patch)
tree4957b83ec43c2b238aa5518241d86a7301c20925 /ucb/source
parent1a7f09b3eb878ebdcd106eb3b0b7dd5fe760dd5a (diff)
Add comment the RTL_CONSTASCII_STRINGPARAM should be kept in regexp.cxx
Change-Id: I3cd2129d98c3d936d8ec31f89554b37f12427c1c
Diffstat (limited to 'ucb/source')
-rw-r--r--ucb/source/regexp/regexp.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/ucb/source/regexp/regexp.cxx b/ucb/source/regexp/regexp.cxx
index 58ba06529b91..ffa318caac45 100644
--- a/ucb/source/regexp/regexp.cxx
+++ b/ucb/source/regexp/regexp.cxx
@@ -374,6 +374,9 @@ Regexp Regexp::parse(rtl::OUString const & rRegexp)
if (p == pEnd)
throw lang::IllegalArgumentException();
+ // This and the matchString() calls below are some of the few places where
+ // RTL_CONSTASCII_STRINGPARAM() should NOT be removed.
+ // (c.f. https://gerrit.libreoffice.org/3117)
if (matchString(&p, pEnd, RTL_CONSTASCII_STRINGPARAM(".*")))
{
if (p != pEnd)