Add comment the RTL_CONSTASCII_STRINGPARAM should be kept in regexp.cxx
Change-Id: I3cd2129d98c3d936d8ec31f89554b37f12427c1c
This commit is contained in:
@@ -374,6 +374,9 @@ Regexp Regexp::parse(rtl::OUString const & rRegexp)
|
|||||||
if (p == pEnd)
|
if (p == pEnd)
|
||||||
throw lang::IllegalArgumentException();
|
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 (matchString(&p, pEnd, RTL_CONSTASCII_STRINGPARAM(".*")))
|
||||||
{
|
{
|
||||||
if (p != pEnd)
|
if (p != pEnd)
|
||||||
|
Reference in New Issue
Block a user