mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
fix NSTimeZone hash
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37312 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f1b6c9f9f5
commit
18c8dcfbf9
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2013-10-29 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSTimeZone.m: Implement -hash as the hash of the time zone
|
||||
name so that we can find equal timezones in a set/dictionary as we
|
||||
should, rather than onlyn finding identical time zones.
|
||||
|
||||
2013-10-28 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Tools/AGSParser.m: Add code to ignore NS_FORMAT_ARGUMENT and
|
||||
|
|
|
@ -2036,6 +2036,11 @@ localZoneString, [zone name], sign, s/3600, (s/60)%60);
|
|||
[aCoder encodeObject: [self name]];
|
||||
}
|
||||
|
||||
- (NSUInteger) hash
|
||||
{
|
||||
return [[self name] hash];
|
||||
}
|
||||
|
||||
- (id) init
|
||||
{
|
||||
return [self initWithName: @"NSLocalTimeZone" data: nil];
|
||||
|
|
Loading…
Reference in a new issue