diff options
author | Callum Prentice <callum@lindenlab.com> | 2023-05-17 11:31:45 -0700 |
---|---|---|
committer | Callum Prentice <callum@lindenlab.com> | 2023-05-17 11:31:45 -0700 |
commit | f45e888c903bc7a4953b2812e6c30721a4322d1b (patch) | |
tree | dc76eefe00474e27ad2981f0d922fec617d1b9ad /indra/llcharacter/llgesture.cpp | |
parent | 671978e3927bc3ba9fc34008bbb7efd6f07b6c81 (diff) | |
parent | 5a70639b7992842a9f74ec81b11bac56608b8f2e (diff) |
Some small tweaks after merge with Viewer release
Diffstat (limited to 'indra/llcharacter/llgesture.cpp')
-rw-r--r-- | indra/llcharacter/llgesture.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/indra/llcharacter/llgesture.cpp b/indra/llcharacter/llgesture.cpp index 37904936d8..80717d8d26 100644 --- a/indra/llcharacter/llgesture.cpp +++ b/indra/llcharacter/llgesture.cpp @@ -199,15 +199,14 @@ BOOL LLGestureList::triggerAndReviseString(const std::string &string, std::strin typedef boost::tokenizer<boost::char_separator<char> > tokenizer; boost::char_separator<char> sep(" "); tokenizer tokens(string, sep); - tokenizer::iterator token_iter; - for( token_iter = tokens.begin(); token_iter != tokens.end(); ++token_iter) + for(const std::string& cur_token : tokens) { LLGesture* gesture = NULL; if( !found_gestures ) // Only pay attention to the first gesture in the string. { - std::string cur_token_lower = *token_iter; + std::string cur_token_lower = cur_token; LLStringUtil::toLower(cur_token_lower); for (U32 i = 0; i < mList.size(); i++) @@ -228,7 +227,7 @@ BOOL LLGestureList::triggerAndReviseString(const std::string &string, std::strin LLStringUtil::toLower(output_lower); if( cur_token_lower == output_lower ) { - revised_string->append(*token_iter); + revised_string->append(cur_token); } else { @@ -249,7 +248,7 @@ BOOL LLGestureList::triggerAndReviseString(const std::string &string, std::strin { revised_string->append( " " ); } - revised_string->append( *token_iter ); + revised_string->append( cur_token ); } first_token = FALSE; |