ICU-6132 Set the retMatcher's status to the correct error code.

X-SVN-Rev: 23266
This commit is contained in:
Michael Ow 2008-01-17 22:57:16 +00:00
parent f95265173e
commit d4081eab27

View File

@ -328,6 +328,7 @@ uint32_t RegexPattern::flags() const {
RegexMatcher *RegexPattern::matcher(const UnicodeString &input,
UErrorCode &status) const {
RegexMatcher *retMatcher = matcher(status);
retMatcher->fDeferredStatus = status;
if (retMatcher != NULL) {
retMatcher->reset(input);
}