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

(-)file_not_specified_in_diff (-19 / +21 lines)
Line  Link Here
0
-- a/trunk/tools/regression/src/library_status.cpp
0
++ b/trunk/tools/regression/src/library_status.cpp
Lines 170-185 Link Here
170
    //  find_element  ------------------------------------------------------------//
170
    //  find_element  ------------------------------------------------------------//
171
171
172
    struct element_equal {
173
        const string & m_name;
174
        element_equal(const string & name) :
175
            m_name(name)
176
        {}
177
        bool operator()(const xml::element_ptr & xep) const {
178
            return xep.get()->name == m_name;
179
        }
180
    };
181
172
    xml::element_list::const_iterator find_element(
182
    xml::element_list::const_iterator find_element(
173
        const xml::element & root, const string & name 
183
        const xml::element & root, const string & name 
174
    ){
184
    ){
175
        struct element_equal {
176
            const string & m_name;
177
            element_equal(const string & name) :
178
                m_name(name)
179
            {}
180
            bool operator()(const xml::element_ptr & xep) const {
181
                return xep.get()->name == m_name;
182
            }
183
        };
184
        return std::find_if(
185
        return std::find_if(
185
            root.elements.begin(), 
186
            root.elements.begin(), 
Lines 202-218 Link Here
202
    //  attribute_value  ----------------------------------------------------------//
203
    //  attribute_value  ----------------------------------------------------------//
203
204
205
    struct attribute_equal {
206
        const string & m_name;
207
        attribute_equal(const string & name) :
208
            m_name(name)
209
        {}
210
        bool operator()(const xml::attribute & a) const {
211
            return a.name == m_name;
212
        }
213
    };
214
204
    const string & attribute_value( 
215
    const string & attribute_value( 
205
        const xml::element & element,
216
        const xml::element & element,
206
        const string & attribute_name 
217
        const string & attribute_name 
207
    ){
218
    ){
208
        struct attribute_equal {
209
            const string & m_name;
210
            attribute_equal(const string & name) :
211
                m_name(name)
212
            {}
213
            bool operator()(const xml::attribute & a) const {
214
                return a.name == m_name;
215
            }
216
        };
217
        xml::attribute_list::const_iterator itr;
219
        xml::attribute_list::const_iterator itr;
218
        itr = std::find_if(
220
        itr = std::find_if(

Return to bug 476964