ObjFW  Check-in [ab57aea91a]

Overview
Comment:Rather use -[copy] in exceptions as the passed string could be mutable.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ab57aea91a47213be572fe84dff596744113c1e0c322d3875b2ea4653c7e4865
User & Date: js on 2009-08-16 13:29:22
Other Links: manifest | tags
Context
2009-08-16
13:30
Rather use -[copy] in OFXMLElement as the string could be mutable. check-in: e6570420f3 user: js tags: trunk
13:29
Rather use -[copy] in exceptions as the passed string could be mutable. check-in: ab57aea91a user: js tags: trunk
13:28
Add OF{Link,Symlink}FailedException. check-in: 35d9dbcd6f user: js tags: trunk
Changes

Modified src/OFExceptions.m from [5d89d115ab] to [a8fc13d28b].

350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365

- initWithClass: (Class)class_
	   path: (OFString*)path_
	   mode: (OFString*)mode_
{
	self = [super initWithClass: class_];

	path = [path_ retain];
	mode = [mode_ retain];
	err  = GET_ERR;

	return self;
}

- (void)dealloc
{







|
|







350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365

- initWithClass: (Class)class_
	   path: (OFString*)path_
	   mode: (OFString*)mode_
{
	self = [super initWithClass: class_];

	path = [path_ copy];
	mode = [mode_ copy];
	err  = GET_ERR;

	return self;
}

- (void)dealloc
{
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547

- initWithClass: (Class)class_
	 source: (OFString*)src_
    destination: (OFString*)dest_
{
	self = [super initWithClass: class_];

	src  = [src_ retain];
	dest = [dest_ retain];
	err  = GET_ERR;

	return self;
}

- (void)dealloc
{







|
|







532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547

- initWithClass: (Class)class_
	 source: (OFString*)src_
    destination: (OFString*)dest_
{
	self = [super initWithClass: class_];

	src  = [src_ copy];
	dest = [dest_ copy];
	err  = GET_ERR;

	return self;
}

- (void)dealloc
{
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612

- initWithClass: (Class)class_
	 source: (OFString*)src_
    destination: (OFString*)dest_
{
	self = [super initWithClass: class_];

	src  = [src_ retain];
	dest = [dest_ retain];
	err  = GET_ERR;

	return self;
}

- (void)dealloc
{







|
|







597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612

- initWithClass: (Class)class_
	 source: (OFString*)src_
    destination: (OFString*)dest_
{
	self = [super initWithClass: class_];

	src  = [src_ copy];
	dest = [dest_ copy];
	err  = GET_ERR;

	return self;
}

- (void)dealloc
{
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718

- initWithClass: (Class)class_
	   node: (OFString*)node_
	service: (OFString*)service_
{
	self = [super initWithClass: class_];

	node	= [node_ retain];
	service = [service_ retain];
	err	= GET_AT_ERR;

	return self;
}

- (void)dealloc
{







|
|







703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718

- initWithClass: (Class)class_
	   node: (OFString*)node_
	service: (OFString*)service_
{
	self = [super initWithClass: class_];

	node	= [node_ copy];
	service = [service_ copy];
	err	= GET_AT_ERR;

	return self;
}

- (void)dealloc
{
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787

- initWithClass: (Class)class_
	   node: (OFString*)node_
	service: (OFString*)service_
{
	self = [super initWithClass: class_];

	node	= [node_ retain];
	service	= [service_ retain];
	err	= GET_SOCK_ERR;

	return self;
}

- (void)dealloc
{







|
|







772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787

- initWithClass: (Class)class_
	   node: (OFString*)node_
	service: (OFString*)service_
{
	self = [super initWithClass: class_];

	node	= [node_ copy];
	service	= [service_ copy];
	err	= GET_SOCK_ERR;

	return self;
}

- (void)dealloc
{
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
- initWithClass: (Class)class_
	   node: (OFString*)node_
	service: (OFString*)service_
	 family: (int)family_
{
	self = [super initWithClass: class_];

	node	= [node_ retain];
	service	= [service_ retain];
	family	= family_;
	err	= GET_SOCK_ERR;

	return self;
}

- (void)dealloc







|
|







841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
- initWithClass: (Class)class_
	   node: (OFString*)node_
	service: (OFString*)service_
	 family: (int)family_
{
	self = [super initWithClass: class_];

	node	= [node_ copy];
	service	= [service_ copy];
	family	= family_;
	err	= GET_SOCK_ERR;

	return self;
}

- (void)dealloc