aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/xmpp/stanzas
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-03-20 15:49:53 +0100
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-03-20 15:49:53 +0100
commitb6ea028a9d2ceed5da7aa15e68c56cfd91291e94 (patch)
tree263b3c42057771944ab7c24096858c394460c499 /src/eu/siacs/conversations/xmpp/stanzas
parent5653880156eac4da93bda9dbfef6df129a207b09 (diff)
added no-copy
Diffstat (limited to 'src/eu/siacs/conversations/xmpp/stanzas')
-rw-r--r--src/eu/siacs/conversations/xmpp/stanzas/IqPacket.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/xmpp/stanzas/IqPacket.java b/src/eu/siacs/conversations/xmpp/stanzas/IqPacket.java
index f70a74dd..8cd1abc0 100644
--- a/src/eu/siacs/conversations/xmpp/stanzas/IqPacket.java
+++ b/src/eu/siacs/conversations/xmpp/stanzas/IqPacket.java
@@ -39,8 +39,7 @@ public class IqPacket extends AbstractStanza {
public Element query() {
Element query = findChild("query");
if (query==null) {
- query = new Element("query");
- addChild(query);
+ query = addChild("query");
}
return query;
}