ObjFW  Diff

Differences From Artifact [d4ad83d094]:

To Artifact [1998367c8d]:


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

	if (query != nil)
		[ret appendFormat: @"?%@", query];

	if (fragment != nil)
		[ret 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.
	 */
	ret->isa = [OFString class];
	return ret;
}

- (OFString*)description
{
	return [self string];
}







<
|
|
<
<
<







528
529
530
531
532
533
534

535
536



537
538
539
540
541
542
543

	if (query != nil)
		[ret appendFormat: @"?%@", query];

	if (fragment != nil)
		[ret appendFormat: @"#%@", fragment];


	[ret makeImmutable];




	return ret;
}

- (OFString*)description
{
	return [self string];
}