Pop only completed child elements.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2924 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
413102c4c1
commit
d3a451fcae
|
@ -1224,8 +1224,9 @@ public:
|
||||||
*/
|
*/
|
||||||
inline XmlElement* pop() {
|
inline XmlElement* pop() {
|
||||||
XmlElement* x = findFirstChild();
|
XmlElement* x = findFirstChild();
|
||||||
if (x)
|
if (!(x && x->completed()))
|
||||||
m_children.removeChild(x,false);
|
return 0;
|
||||||
|
m_children.removeChild(x,false);
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue