Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 62822
Collapse All | Expand All

(-)wvstreams-3.75.0/include/uniconftree.h (-5 / +5 lines)
Lines 48-54 Link Here
48
48
49
    /** Returns a pointer to the parent node, or NULL if there is none. */
49
    /** Returns a pointer to the parent node, or NULL if there is none. */
50
    Sub *parent() const
50
    Sub *parent() const
51
        { return static_cast<Sub*>(xparent); }
51
        { return static_cast <Sub*>(this->xparent); }
52
52
53
    /** Reparents this node. */
53
    /** Reparents this node. */
54
    void setparent(Sub *parent)
54
    void setparent(Sub *parent)
Lines 56-62 Link Here
56
    
56
    
57
    /** Returns a pointer to the root node of the tree. */
57
    /** Returns a pointer to the root node of the tree. */
58
    Sub *root() const
58
    Sub *root() const
59
        { return static_cast<Sub*>(Base::_root()); }
59
        { return static_cast <Sub*>(Base::_root()); }
60
    
60
    
61
    /**
61
    /**
62
     * Returns full path of this node relative to an ancestor.
62
     * Returns full path of this node relative to an ancestor.
Lines 93-105 Link Here
93
    /** Removes and deletes all children of this node. */
93
    /** Removes and deletes all children of this node. */
94
    void zap()
94
    void zap()
95
    {
95
    {
96
        if (!xchildren)
96
        if (!(this->xchildren))
97
            return;
97
            return;
98
        // set xchildren to NULL first so that the zap() will happen faster
98
        // set xchildren to NULL first so that the zap() will happen faster
99
        // otherwise, each child will attempt to unlink itself uselessly
99
        // otherwise, each child will attempt to unlink itself uselessly
100
100
101
        typename Base::Container *oldchildren = xchildren;
101
        typename Base::Container *oldchildren = this->xchildren;
102
        xchildren = NULL;
102
        this->xchildren = NULL;
103
103
104
        // delete all children
104
        // delete all children
105
        typename Base::Container::Iter i(*oldchildren);
105
        typename Base::Container::Iter i(*oldchildren);
(-)wvstreams-3.75.0/include/wvscatterhash.h (-1 / +1 lines)
Lines 154-160 Link Here
154
        { _set_autofree(Accessor::get_key(data), hash(data), auto_free); }
154
        { _set_autofree(Accessor::get_key(data), hash(data), auto_free); }
155
155
156
    bool get_autofree(const T *data)
156
    bool get_autofree(const T *data)
157
        { _get_autofree(Accessor::get_key(data), hash(data)); }
157
        { return _get_autofree(Accessor::get_key(data), hash(data)); }
158
158
159
    void zap()
159
    void zap()
160
        { _zap(); }
160
        { _zap(); }
(-)wvstreams-3.75.0/include/wvsorter.h (-1 / +1 lines)
Lines 90-96 Link Here
90
    for (i.rewind(); i.next(); )
90
    for (i.rewind(); i.next(); )
91
	n++;
91
	n++;
92
    
92
    
93
    array = new (void *) [n+2];
93
    array = new void * [n+2];
94
    void **aptr = array;
94
    void **aptr = array;
95
95
96
    *aptr++ = NULL; // initial link is NULL, to act like a normal iterator
96
    *aptr++ = NULL; // initial link is NULL, to act like a normal iterator
(-)wvstreams-3.75.0/utils/wvbuffer.cc (-7 / +7 lines)
Lines 9-21 Link Here
9
/***** Specialization for raw memory buffers *****/
9
/***** Specialization for raw memory buffers *****/
10
10
11
// Instantiate some commonly used templates
11
// Instantiate some commonly used templates
12
template WvBufBaseCommonImpl<unsigned char>;
12
template class WvBufBaseCommonImpl<unsigned char>;
13
template WvInPlaceBufBase<unsigned char>;
13
template class WvInPlaceBufBase<unsigned char>;
14
template WvConstInPlaceBufBase<unsigned char>;
14
template class WvConstInPlaceBufBase<unsigned char>;
15
template WvCircularBufBase<unsigned char>;
15
template class WvCircularBufBase<unsigned char>;
16
template WvDynBufBase<unsigned char>;
16
template class WvDynBufBase<unsigned char>;
17
template WvNullBufBase<unsigned char>;
17
template class WvNullBufBase<unsigned char>;
18
template WvBufCursorBase<unsigned char>;
18
template class WvBufCursorBase<unsigned char>;
19
19
20
void WvBufBase<unsigned char>::putstr(WvStringParm str)
20
void WvBufBase<unsigned char>::putstr(WvStringParm str)
21
{
21
{

Return to bug 62822