Example #1
0
bool DataList::Remove(PNode node)
{
    if (!node.Ok())
        return false;
    if (nodes.erase(BA::to_lower_copy(node->Name())) <= 0)
        return false;

    node->parent = NULL;
    node->ListRemove();
    return true;
}
Example #2
0
bool DataList::Remove(const std::string& str)
{
    //PNode node=nodes.find(str.Lower())->last;
    PNode node = Find(str);
    if (!node.Ok())
        return false;
    if (nodes.erase(BA::to_lower_copy(str)) <= 0)
        return false;

    node->parent = NULL;
    node->ListRemove();
    return true;
}