diff options
author | Yuri Chebotarev <ychebotarev@productengine.com> | 2010-06-10 17:12:43 +0300 |
---|---|---|
committer | Yuri Chebotarev <ychebotarev@productengine.com> | 2010-06-10 17:12:43 +0300 |
commit | 591aa0d5be809a8ce0ba314493a9c3a8dfee8b9b (patch) | |
tree | b25bde7aa69b25a9ebbd80d5dc363891d00b32d8 | |
parent | 4f34d63f3e9b2d70bd24c2f49cce98da30df050e (diff) |
EXT-7741 FIX add iterator increment to prevent infinite loop
revieded by Mike Antipov https://codereview.productengine.com/secondlife/r/552/
--HG--
branch : product-engine
-rw-r--r-- | indra/newview/llfolderview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llfolderview.cpp b/indra/newview/llfolderview.cpp index a87f7288fa..184ffdb274 100644 --- a/indra/newview/llfolderview.cpp +++ b/indra/newview/llfolderview.cpp @@ -2310,7 +2310,7 @@ void LLFolderView::updateRenamerPosition() bool LLFolderView::selectFirstItem() { for (folders_t::iterator iter = mFolders.begin(); - iter != mFolders.end();) + iter != mFolders.end();++iter) { LLFolderViewFolder* folder = (*iter ); if (folder->getVisible()) @@ -2347,7 +2347,7 @@ bool LLFolderView::selectLastItem() } } for (folders_t::reverse_iterator iter = mFolders.rbegin(); - iter != mFolders.rend();) + iter != mFolders.rend();++iter) { LLFolderViewFolder* folder = (*iter); if (folder->getVisible()) |