163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
|
if ((env = getenv("USER")) != NULL)
[environment
setObject: [OFString stringWithCString: env]
forKey: @"USER"];
#endif
[pool release];
/*
* Class swizzle the environment to be immutable, as we don't
* need to change it anymore and expose it only as
* OFDictionary*. But not swizzling it would create a real copy
* each time -[copy] is called.
*/
environment->isa = [OFDictionary class];
} @catch (id e) {
[self release];
@throw e;
}
return self;
}
|
<
<
<
<
<
<
|
|
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
|
if ((env = getenv("USER")) != NULL)
[environment
setObject: [OFString stringWithCString: env]
forKey: @"USER"];
#endif
[pool release];
[environment makeImmutable];
} @catch (id e) {
[self release];
@throw e;
}
return self;
}
|