From 0bbe151263ceffd4cf7ab9497fffa425284d3108 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Mon, 23 Apr 2012 20:01:59 +0000 Subject: make QXmppElementList a typedef (thanks Matt) --- src/base/QXmppElement.cpp | 16 ---------------- src/base/QXmppElement.h | 9 +-------- 2 files changed, 1 insertion(+), 24 deletions(-) (limited to 'src/base') diff --git a/src/base/QXmppElement.cpp b/src/base/QXmppElement.cpp index 904ab473..8832038c 100644 --- a/src/base/QXmppElement.cpp +++ b/src/base/QXmppElement.cpp @@ -223,19 +223,3 @@ void QXmppElement::toXml(QXmlStreamWriter *writer) const child.toXml(writer); writer->writeEndElement(); } - -QXmppElementList::QXmppElementList() -{ -} - -QXmppElementList::QXmppElementList(const QXmppElement &element) -{ - append(element); -} - - -QXmppElementList::QXmppElementList(const QList &other) - : QList(other) -{ -} - diff --git a/src/base/QXmppElement.h b/src/base/QXmppElement.h index b8da1f16..1bf2a7fa 100644 --- a/src/base/QXmppElement.h +++ b/src/base/QXmppElement.h @@ -34,14 +34,7 @@ class QDomElement; class QXmppElement; class QXmppElementPrivate; -class QXMPP_EXPORT QXmppElementList : public QList -{ -public: - QXmppElementList(); - QXmppElementList(const QXmppElement &element); - QXmppElementList(const QList &other); -}; - +typedef QList QXmppElementList; class QXMPP_EXPORT QXmppElement { public: -- cgit v1.2.3