mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
small performance tweak ... don't create new arrays when comparing headers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35611 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a352f3056d
commit
dd95865a09
1 changed files with 2 additions and 2 deletions
|
@ -5520,11 +5520,11 @@ appendString(NSMutableData *m, NSUInteger offset, NSUInteger fold,
|
|||
{
|
||||
return NO;
|
||||
}
|
||||
if (NO == [[self allHeaders] isEqual: [other allHeaders]])
|
||||
if (NO == [headers isEqual: ((GSMimeDocument*)other)->headers])
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
if (NO == [[self content] isEqual: [(GSMimeDocument*)other content]])
|
||||
if (NO == [content isEqual: ((GSMimeDocument*)other)->content])
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue