ICU-6426 fix breakage on solaris, aix, hp. merge from r26724

X-SVN-Rev: 26727
This commit is contained in:
Steven R. Loomis 2009-10-01 22:50:45 +00:00
parent e2e3789ac4
commit 67134440a0

View File

@ -395,7 +395,7 @@ void
TextTrieMap::search(const UnicodeString &text, int32_t start,
TextTrieMapSearchResultHandler *handler, UErrorCode &status) const {
UBool trieNeedsInitialization = FALSE;
UMTX_CHECK(TextTrieMutex, fLazyContents != NULL, trieNeedsInitialization);
UMTX_CHECK(&TextTrieMutex, fLazyContents != NULL, trieNeedsInitialization);
if (trieNeedsInitialization) {
TextTrieMap *nonConstThis = const_cast<TextTrieMap *>(this);
nonConstThis->buildTrie(status);