Skip to content
Snippets Groups Projects
Commit db119d86 authored by James Cook's avatar James Cook
Browse files

Merge

parents bd8c1c3b 0f86f811
No related branches found
No related tags found
No related merge requests found
...@@ -160,8 +160,9 @@ void LLUrlEntryBase::callObservers(const std::string &id, ...@@ -160,8 +160,9 @@ void LLUrlEntryBase::callObservers(const std::string &id,
const std::string &icon) const std::string &icon)
{ {
// notify all callbacks waiting on the given uuid // notify all callbacks waiting on the given uuid
std::multimap<std::string, LLUrlEntryObserver>::iterator it; typedef std::multimap<std::string, LLUrlEntryObserver>::iterator observer_it;
for (it = mObservers.find(id); it != mObservers.end();) std::pair<observer_it, observer_it> matching_range = mObservers.equal_range(id);
for (observer_it it = matching_range.first; it != matching_range.second;)
{ {
// call the callback - give it the new label // call the callback - give it the new label
LLUrlEntryObserver &observer = it->second; LLUrlEntryObserver &observer = it->second;
...@@ -342,8 +343,9 @@ void LLUrlEntryAgent::callObservers(const std::string &id, ...@@ -342,8 +343,9 @@ void LLUrlEntryAgent::callObservers(const std::string &id,
const std::string &icon) const std::string &icon)
{ {
// notify all callbacks waiting on the given uuid // notify all callbacks waiting on the given uuid
std::multimap<std::string, LLUrlEntryObserver>::iterator it; typedef std::multimap<std::string, LLUrlEntryObserver>::iterator observer_it;
for (it = mObservers.find(id); it != mObservers.end();) std::pair<observer_it, observer_it> matching_range = mObservers.equal_range(id);
for (observer_it it = matching_range.first; it != matching_range.second;)
{ {
// call the callback - give it the new label // call the callback - give it the new label
LLUrlEntryObserver &observer = it->second; LLUrlEntryObserver &observer = it->second;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment