From cfea8d5362dce0db29ccd90da800338d1f760b94 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Sat, 19 Feb 2011 16:08:57 +0100 Subject: [PATCH] Remove old attributes before adding new ones. --- src/XMPPStanza.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/XMPPStanza.m b/src/XMPPStanza.m index bca6c5b..c96fbe2 100644 --- a/src/XMPPStanza.m +++ b/src/XMPPStanza.m @@ -160,7 +160,7 @@ from = [from_ copy]; [old release]; - /* FIXME: Remove old attribute! */ + [self removeAttributeForName: @"from"]; [self addAttributeWithName: @"from" stringValue: from_]; } @@ -171,7 +171,7 @@ to = [to_ copy]; [old release]; - /* FIXME: Remove old attribute! */ + [self removeAttributeForName: @"to"]; [self addAttributeWithName: @"to" stringValue: to]; } @@ -182,7 +182,7 @@ type = [type_ copy]; [old release]; - /* FIXME: Remove old attribute! */ + [self removeAttributeForName: @"type"]; [self addAttributeWithName: @"type" stringValue: type]; } @@ -193,7 +193,7 @@ ID = [ID_ copy]; [old release]; - /* FIXME: Remove old attribute! */ + [self removeAttributeForName: @"id"]; [self addAttributeWithName: @"id" stringValue: ID]; }