// callback from the name cache with an owner name to add to the list void LLPanelScriptLimitsRegionMemory::onNameCache( const LLUUID& id, const std::string& first_name, const std::string& last_name) { std::string name = first_name + " " + last_name; LLScrollListCtrl *list = getChild<LLScrollListCtrl>("scripts_list"); if(!list) { return; } std::vector<LLSD>::iterator id_itor; for (id_itor = mObjectListItems.begin(); id_itor != mObjectListItems.end(); ++id_itor) { LLSD element = *id_itor; if(element["owner_id"].asUUID() == id) { LLScrollListItem* item = list->getItem(element["id"].asUUID()); if(item) { item->getColumn(3)->setValue(LLSD(name)); element["columns"][3]["value"] = name; } } } }