Differences From Artifact [27fbf1ebf8]:
- File
src/OFString.m
— part of check-in
[11f24addd7]
at
2017-11-19 12:05:42
on branch trunk
— Fix warnings introduced by OFComparing change
Since OFComparing no longer conforms to OFObject, OFObject needed to be
added at a few places. (user: js, size: 69184) [annotate] [blame] [check-ins using]
To Artifact [6c49aac468]:
- File src/OFString.m — part of check-in [615a9f2eba] at 2017-11-19 12:56:14 on branch trunk — Fix compilation with GCC (user: js, size: 69178) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
1548 1549 1550 1551 1552 1553 1554 | } - (id)mutableCopy { return [[OFMutableString alloc] initWithString: self]; } | | | | 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 | } - (id)mutableCopy { return [[OFMutableString alloc] initWithString: self]; } - (of_comparison_result_t)compare: (id <OFComparing>)object { void *pool; OFString *otherString; const of_unichar_t *characters, *otherCharacters; size_t minimumLength; if (object == self) return OF_ORDERED_SAME; if (![(id)object isKindOfClass: [OFString class]]) @throw [OFInvalidArgumentException exception]; otherString = (OFString *)object; minimumLength = ([self length] > [otherString length] ? [otherString length] : [self length]); pool = objc_autoreleasePoolPush(); |
︙ | ︙ |