Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

Q3PtrCollection::Item Q3GList::takeFirst (  )  [protected]

Takes the first item out of the list.

Definition at line 665 of file q3glist.cpp.

References Q3LNode::data, first(), and unlink().

{
    first();
    Q3LNode *n = unlink();                // unlink node
    Item d = n ? n->data : 0;
    delete n;
    return d;
}


Generated by  Doxygen 1.6.0   Back to index