summaryrefslogtreecommitdiff
path: root/indra/newview/llpopupview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llpopupview.cpp')
-rw-r--r--indra/newview/llpopupview.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/indra/newview/llpopupview.cpp b/indra/newview/llpopupview.cpp
index d8ad59c90c..b010f4d72f 100644
--- a/indra/newview/llpopupview.cpp
+++ b/indra/newview/llpopupview.cpp
@@ -207,11 +207,7 @@ void LLPopupView::addPopup(LLView* popup)
{
if (popup)
{
- popup_list_t::iterator iter = std::find(mPopups.begin(), mPopups.end(), popup->getHandle());
- if(iter != mPopups.end())
- {
- mPopups.erase(iter);
- }
+ mPopups.remove(popup->getHandle());
mPopups.push_front(popup->getHandle());
}
}
@@ -220,11 +216,7 @@ void LLPopupView::removePopup(LLView* popup)
{
if (popup)
{
- popup_list_t::iterator iter = std::find(mPopups.begin(), mPopups.end(), popup->getHandle());
- if(iter != mPopups.end())
- {
- mPopups.erase(iter);
- }
+ mPopups.remove(popup->getHandle());
popup->onTopLost();
}
}