diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llgesturemgr.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llgesturemgr.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/linden/indra/newview/llgesturemgr.cpp b/linden/indra/newview/llgesturemgr.cpp index 27c9836..86b2242 100644 --- a/linden/indra/newview/llgesturemgr.cpp +++ b/linden/indra/newview/llgesturemgr.cpp | |||
@@ -489,7 +489,7 @@ void LLGestureManager::playGesture(const LLUUID& item_id) | |||
489 | // and (as a minor side effect) has multiple spaces in a row replaced by single spaces. | 489 | // and (as a minor side effect) has multiple spaces in a row replaced by single spaces. |
490 | BOOL LLGestureManager::triggerAndReviseString(const std::string &utf8str, std::string* revised_string) | 490 | BOOL LLGestureManager::triggerAndReviseString(const std::string &utf8str, std::string* revised_string) |
491 | { | 491 | { |
492 | LLString tokenized = LLString(utf8str.c_str()); | 492 | std::string tokenized = utf8str; |
493 | 493 | ||
494 | BOOL found_gestures = FALSE; | 494 | BOOL found_gestures = FALSE; |
495 | BOOL first_token = TRUE; | 495 | BOOL first_token = TRUE; |
@@ -507,8 +507,8 @@ BOOL LLGestureManager::triggerAndReviseString(const std::string &utf8str, std::s | |||
507 | // Only pay attention to the first gesture in the string. | 507 | // Only pay attention to the first gesture in the string. |
508 | if( !found_gestures ) | 508 | if( !found_gestures ) |
509 | { | 509 | { |
510 | LLString cur_token_lower = cur_token; | 510 | std::string cur_token_lower = cur_token; |
511 | LLString::toLower(cur_token_lower); | 511 | LLStringUtil::toLower(cur_token_lower); |
512 | 512 | ||
513 | // collect gestures that match | 513 | // collect gestures that match |
514 | std::vector <LLMultiGesture *> matching; | 514 | std::vector <LLMultiGesture *> matching; |
@@ -520,7 +520,7 @@ BOOL LLGestureManager::triggerAndReviseString(const std::string &utf8str, std::s | |||
520 | // Gesture asset data might not have arrived yet | 520 | // Gesture asset data might not have arrived yet |
521 | if (!gesture) continue; | 521 | if (!gesture) continue; |
522 | 522 | ||
523 | if (!stricmp(gesture->mTrigger.c_str(), cur_token_lower.c_str())) | 523 | if (gesture->mTrigger == cur_token_lower) |
524 | { | 524 | { |
525 | matching.push_back(gesture); | 525 | matching.push_back(gesture); |
526 | } | 526 | } |
@@ -548,9 +548,9 @@ BOOL LLGestureManager::triggerAndReviseString(const std::string &utf8str, std::s | |||
548 | } | 548 | } |
549 | 549 | ||
550 | // Don't muck with the user's capitalization if we don't have to. | 550 | // Don't muck with the user's capitalization if we don't have to. |
551 | LLString output = gesture->mReplaceText.c_str(); | 551 | std::string output = gesture->mReplaceText; |
552 | LLString output_lower = output; | 552 | std::string output_lower = output; |
553 | LLString::toLower(output_lower); | 553 | LLStringUtil::toLower(output_lower); |
554 | if( cur_token_lower == output_lower ) | 554 | if( cur_token_lower == output_lower ) |
555 | { | 555 | { |
556 | if (revised_string) | 556 | if (revised_string) |
@@ -958,7 +958,7 @@ void LLGestureManager::onLoadComplete(LLVFS *vfs, | |||
958 | && gGestureManager.mDeactivateSimilarNames.length() > 0) | 958 | && gGestureManager.mDeactivateSimilarNames.length() > 0) |
959 | { | 959 | { |
960 | // we're done with this set of deactivations | 960 | // we're done with this set of deactivations |
961 | LLString::format_map_t args; | 961 | LLStringUtil::format_map_t args; |
962 | args["[NAMES]"] = gGestureManager.mDeactivateSimilarNames; | 962 | args["[NAMES]"] = gGestureManager.mDeactivateSimilarNames; |
963 | LLNotifyBox::showXml("DeactivatedGesturesTrigger", args); | 963 | LLNotifyBox::showXml("DeactivatedGesturesTrigger", args); |
964 | } | 964 | } |
@@ -1123,9 +1123,9 @@ BOOL LLGestureManager::matchPrefix(const std::string& in_str, std::string* out_s | |||
1123 | continue; | 1123 | continue; |
1124 | } | 1124 | } |
1125 | 1125 | ||
1126 | LLString trigger_trunc = trigger; | 1126 | std::string trigger_trunc = trigger; |
1127 | LLString::truncate(trigger_trunc, in_len); | 1127 | LLStringUtil::truncate(trigger_trunc, in_len); |
1128 | if (!LLString::compareInsensitive(in_str.c_str(), trigger_trunc.c_str())) | 1128 | if (!LLStringUtil::compareInsensitive(in_str, trigger_trunc)) |
1129 | { | 1129 | { |
1130 | *out_str = trigger; | 1130 | *out_str = trigger; |
1131 | return TRUE; | 1131 | return TRUE; |