mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Simple trick to get quite some speed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@8551 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4743653ee0
commit
9cf64f3b86
2 changed files with 18 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2001-01-10 Nicola Pero <n.pero@mi.flashnet.it>
|
||||
|
||||
* Source/GSAttributedString.m ([GSAttributedString -length]),
|
||||
([GSMutableAttributedString -length]): Added for speed.
|
||||
|
||||
2001-01-10 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/Unicode.m: Fix bug in checking possible default string
|
||||
|
|
|
@ -490,6 +490,13 @@ _attributesAtIndexEffectiveRange(
|
|||
[super dealloc];
|
||||
}
|
||||
|
||||
|
||||
// The superclass implementation is correct but too slow
|
||||
- (unsigned int) length
|
||||
{
|
||||
return [_textChars length];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
@ -828,6 +835,12 @@ SANITY();
|
|||
[super dealloc];
|
||||
}
|
||||
|
||||
// The superclass implementation is correct but too slow
|
||||
- (unsigned int) length
|
||||
{
|
||||
return [_textChars length];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue