ObjFW  Check-in [e6570420f3]

Overview
Comment:Rather use -[copy] in OFXMLElement as the string could be mutable.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e6570420f3f56c96674a53a22fa7ccaae1e9713ba3e505d6293ba4a667152e4a
User & Date: js on 2009-08-16 13:30:58
Other Links: manifest | tags
Context
2009-08-17
21:13
Ensure in the headers that we got the required definitions. check-in: 5903c87d36 user: js tags: trunk
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
Changes

Modified src/OFXMLElement.m from [12bad844a7] to [cf929b13b9].

98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
					      selector: _cmd];
}

- initWithName: (OFString*)name_
{
	self = [super init];

	name = [name_ retain];

	return self;
}

- initWithName: (OFString*)name_
   stringValue: (OFString*)stringval_
{
	self = [super init];

	name = [name_ retain];
	stringval = [stringval_ retain];

	return self;
}

- (OFString*)string
{
	OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];







|









|
|







98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
					      selector: _cmd];
}

- initWithName: (OFString*)name_
{
	self = [super init];

	name = [name_ copy];

	return self;
}

- initWithName: (OFString*)name_
   stringValue: (OFString*)stringval_
{
	self = [super init];

	name = [name_ copy];
	stringval = [stringval_ copy];

	return self;
}

- (OFString*)string
{
	OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];