Differences From Artifact [27d2646f3d]:
- File src/OFURL.m — part of check-in [58c07e80e4] at 2011-02-26 19:00:57 on branch trunk — Make isa public to allow for better class swizzling. (user: js, size: 9745) [annotate] [blame] [check-ins using]
To Artifact [dd90f55a48]:
- File src/OFURL.m — part of check-in [06f539766f] at 2011-02-26 19:40:50 on branch trunk — Use class swizzling as an optimization. (user: js, size: 9991) [annotate] [blame] [check-ins using]
︙ | |||
513 514 515 516 517 518 519 520 521 522 | 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 | + + + + + + | if (query != nil) [desc appendFormat: @"?%@", query]; if (fragment != nil) [desc appendFormat: @"#%@", fragment]; /* * Class swizzle the string to be immutable. We declared the return type * to be OFString*, so it can't be modified anyway. But not swizzling it * would create a real copy each time -[copy] is called. */ desc->isa = [OFString class]; return desc; } @end |