author | drw <drw> | 2004-02-22 17:54:40 (UTC) |
---|---|---|
committer | drw <drw> | 2004-02-22 17:54:40 (UTC) |
commit | 8705083d6a267450c71b0276833db5c7238f260e (patch) (side-by-side diff) | |
tree | 12cfeab08d8a05808650acb4bc48848633fda63e /libopie2/opiecore/xmltree.cc | |
parent | 5b27ef38d45ae4aa751c6e364cb62ed428808e3f (diff) | |
download | opie-8705083d6a267450c71b0276833db5c7238f260e.zip opie-8705083d6a267450c71b0276833db5c7238f260e.tar.gz opie-8705083d6a267450c71b0276833db5c7238f260e.tar.bz2 |
libopie2: libopie->libopie2
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; |