Make XMPPJID conform to OFCopying.
This commit is contained in:
parent
a2cf5e17e7
commit
f3109b1c7a
2 changed files with 17 additions and 1 deletions
|
@ -68,6 +68,22 @@
|
|||
return self;
|
||||
}
|
||||
|
||||
- copy
|
||||
{
|
||||
XMPPJID *new = [[XMPPJID alloc] init];
|
||||
|
||||
@try {
|
||||
new->node = [node copy];
|
||||
new->domain = [domain copy];
|
||||
new->resource = [resource copy];
|
||||
} @catch (id e) {
|
||||
[new release];
|
||||
@throw e;
|
||||
}
|
||||
|
||||
return new;
|
||||
}
|
||||
|
||||
- (void)setNode: (OFString*)node_
|
||||
{
|
||||
OFString *old = node;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue