This commit is contained in:
Andrei Topala 2025-04-03 16:04:28 -07:00 committed by GitHub
commit 66b4594685
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -236,7 +236,7 @@ void StringSearch::setText(const UnicodeString &text, UErrorCode &status)
{
if (U_SUCCESS(status)) {
m_text_ = text;
usearch_setText(m_strsrch_, text.getBuffer(), text.length(), &status);
usearch_setText(m_strsrch_, m_text_.getBuffer(), m_text_.length(), &status);
}
}