Overview
Comment: | Remove a useless variable. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
41e6f07b2ab81962bf37922f59349047 |
User & Date: | js on 2011-11-20 19:36:03 |
Other Links: | manifest | tags |
Context
2011-11-21
| ||
15:32 | Add new files to Xcode project. check-in: 6e83be4679 user: js tags: trunk | |
2011-11-20
| ||
19:36 | Remove a useless variable. check-in: 41e6f07b2a user: js tags: trunk | |
18:41 | Make OFString a class cluster. check-in: 301ee63212 user: js tags: trunk | |
Changes
Modified src/OFMutableString.m from [b1a528232d] to [bd2a3492a4].
︙ | ︙ | |||
415 416 417 418 419 420 421 | { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init], *pool2; const of_unichar_t *unicodeString; const of_unichar_t *searchString = [string unicodeString]; size_t length = [self length]; size_t searchLength = [string length]; size_t replacementLength = [replacement length]; | | | < | 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 | { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init], *pool2; const of_unichar_t *unicodeString; const of_unichar_t *searchString = [string unicodeString]; size_t length = [self length]; size_t searchLength = [string length]; size_t replacementLength = [replacement length]; size_t i; if (searchLength > length) { [pool release]; return; } pool2 = [[OFAutoreleasePool alloc] init]; unicodeString = [self unicodeString]; for (i = 0; i <= length - searchLength; i++) { if (memcmp(unicodeString + i, searchString, searchLength * sizeof(of_unichar_t))) continue; [self replaceCharactersInRange: of_range(i, searchLength) withString: replacement]; length -= searchLength; length += replacementLength; i += replacementLength - 1; [pool2 releaseObjects]; unicodeString = [self unicodeString]; } [pool release]; |
︙ | ︙ |