Diffstat (limited to 'libopie2/opiecore/xmltree.cc') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiecore/xmltree.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libopie2/opiecore/xmltree.cc b/libopie2/opiecore/xmltree.cc index 27db5b3..059791b 100644 --- a/libopie2/opiecore/xmltree.cc +++ b/libopie2/opiecore/xmltree.cc @@ -14,14 +14,15 @@ You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include <opie2/xmltree.h> + #include <qpe/stringutil.h> -#include <opie/xmltree.h> #include <qxml.h> #include <assert.h> using namespace Opie; @@ -83,22 +84,22 @@ void XMLElement::insertAfter( XMLElement *newChild, XMLElement *refChild ) XMLElement *next = refChild->m_next; refChild->m_next = newChild; newChild->m_prev = refChild; newChild->m_next = next; - + if ( next ) next->m_prev = newChild; } QString XMLElement::attribute( const QString &attr ) const { AttributeMap::ConstIterator it = m_attributes.find( attr ); if ( it == m_attributes.end() ) - return QString::null; + return QString::null; return it.data(); } void XMLElement::setAttribute( const QString &attr, const QString &value ) { m_attributes.replace( attr, value ); @@ -116,13 +117,13 @@ void XMLElement::insertBefore( XMLElement *newChild, XMLElement *refChild ) newChild->m_parent = this; XMLElement *prev = refChild->m_prev; refChild->m_prev = newChild; - + newChild->m_prev = prev; newChild->m_next = refChild; if ( prev ) prev->m_next = newChild; @@ -278,13 +279,13 @@ XMLElement *XMLElement::namedItem( const QString &name ) XMLElement *e = m_first; for (; e; e = e->nextChild() ) if ( e->tagName() == name ) return e; - return 0; + return 0; } XMLElement *XMLElement::clone() const { XMLElement *res = new XMLElement; |