Revision cd580714 src/common/ExtendedAttribute.cc

View differences:

src/common/ExtendedAttribute.cc
75 75
    }
76 76
};
77 77

  
78
/* -------------------------------------------------------------------------- */
79
/* -------------------------------------------------------------------------- */
80

  
81
ExtendedAttribute * ExtendedAttributeSet::delete_attribute(int id)
82
{
83
    std::map<int, ExtendedAttribute*>::iterator it = a_set.find(id);
84

  
85
    if ( it == a_set.end() )
86
    {
87
        return 0;
88
    }
89

  
90
    a_set.erase(it);
91

  
92
    return it->second;
93
}
94

  

Also available in: Unified diff