summaryrefslogtreecommitdiff
path: root/indra/newview/llgesturemgr.cpp
diff options
context:
space:
mode:
authorSteven Bennetts <steve@lindenlab.com>2008-09-29 19:14:50 +0000
committerSteven Bennetts <steve@lindenlab.com>2008-09-29 19:14:50 +0000
commitd725e5b24075b2171f8a5b263969991e9b475078 (patch)
treef1422064fd0ab676dfa66d39b5d0f0b9e8ff1086 /indra/newview/llgesturemgr.cpp
parent66739da16407a8e56accc236bd3996c1963a6bcf (diff)
QAR-872 Viewer 1.21 RC 3
merge viewer_1-21 96116-97380 -> release
Diffstat (limited to 'indra/newview/llgesturemgr.cpp')
-rw-r--r--indra/newview/llgesturemgr.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/indra/newview/llgesturemgr.cpp b/indra/newview/llgesturemgr.cpp
index 9af4bbd532..a25b1daebf 100644
--- a/indra/newview/llgesturemgr.cpp
+++ b/indra/newview/llgesturemgr.cpp
@@ -507,9 +507,6 @@ BOOL LLGestureManager::triggerAndReviseString(const std::string &utf8str, std::s
// Only pay attention to the first gesture in the string.
if( !found_gestures )
{
- std::string cur_token_lower = cur_token;
- LLStringUtil::toLower(cur_token_lower);
-
// collect gestures that match
std::vector <LLMultiGesture *> matching;
item_map_t::iterator it;
@@ -520,7 +517,7 @@ BOOL LLGestureManager::triggerAndReviseString(const std::string &utf8str, std::s
// Gesture asset data might not have arrived yet
if (!gesture) continue;
- if (gesture->mTrigger == cur_token_lower)
+ if (LLStringUtil::compareInsensitive(gesture->mTrigger, cur_token) == 0)
{
matching.push_back(gesture);
}
@@ -548,10 +545,7 @@ BOOL LLGestureManager::triggerAndReviseString(const std::string &utf8str, std::s
}
// Don't muck with the user's capitalization if we don't have to.
- std::string output = gesture->mReplaceText;
- std::string output_lower = output;
- LLStringUtil::toLower(output_lower);
- if( cur_token_lower == output_lower )
+ if( LLStringUtil::compareInsensitive(cur_token, gesture->mReplaceText) == 0)
{
if (revised_string)
revised_string->append( cur_token );
@@ -559,7 +553,7 @@ BOOL LLGestureManager::triggerAndReviseString(const std::string &utf8str, std::s
else
{
if (revised_string)
- revised_string->append( output );
+ revised_string->append( gesture->mReplaceText );
}
}
found_gestures = TRUE;