mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Changes to address mostm of Fred's comments
This commit is contained in:
parent
1e8ff8e628
commit
0d12a1e77e
3 changed files with 183 additions and 199 deletions
|
@ -111,10 +111,8 @@
|
|||
#import "GSPThread.h"
|
||||
|
||||
/* In systems without POSIX time zone information we can use our own builtin
|
||||
* time zone data. To build on those systems we need a header reproducing
|
||||
* the POSIX time zone file format.
|
||||
* time zone data.
|
||||
*/
|
||||
#include "nstzfile.h"
|
||||
|
||||
#if defined(HAVE_UNICODE_UCAL_H)
|
||||
#define id id_ucal
|
||||
|
@ -665,7 +663,7 @@ static NSMapTable *absolutes = 0;
|
|||
}
|
||||
RELEASE(name);
|
||||
RELEASE(detail);
|
||||
[super dealloc];
|
||||
DEALLOC;
|
||||
}
|
||||
|
||||
- (void) encodeWithCoder: (NSCoder*)aCoder
|
||||
|
@ -809,7 +807,7 @@ static NSMapTable *absolutes = 0;
|
|||
- (void) dealloc
|
||||
{
|
||||
RELEASE(timeZone);
|
||||
[super dealloc];
|
||||
DEALLOC
|
||||
}
|
||||
|
||||
- (id) initWithCoder: (NSCoder*)aDecoder
|
||||
|
@ -885,7 +883,7 @@ static NSMapTable *absolutes = 0;
|
|||
- (void) dealloc
|
||||
{
|
||||
RELEASE(zone);
|
||||
[super dealloc];
|
||||
DEALLOC
|
||||
}
|
||||
|
||||
- (id) initWithTimeZone: (GSAbsTimeZone*)aZone
|
||||
|
@ -2516,7 +2514,7 @@ GSBreakTime(NSTimeInterval when,
|
|||
RELEASE(daylightZoneName);
|
||||
RELEASE(timeZoneNameAbbr);
|
||||
RELEASE(daylightZoneNameAbbr);
|
||||
[super dealloc];
|
||||
DEALLOC
|
||||
}
|
||||
|
||||
- (id) initWithName: (NSString*)name data: (NSData*)data
|
||||
|
@ -2962,11 +2960,6 @@ getTypeInfo(NSTimeInterval since, GSTimeZone *zone)
|
|||
return timeZoneData;
|
||||
}
|
||||
|
||||
- (NSTimeInterval) daylightSavingTimeOffsetForDate: (NSDate *)aDate
|
||||
{
|
||||
return [super daylightSavingTimeOffsetForDate: aDate];
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
RELEASE(timeZoneName);
|
||||
|
@ -2975,7 +2968,7 @@ getTypeInfo(NSTimeInterval since, GSTimeZone *zone)
|
|||
{
|
||||
free(sp);
|
||||
}
|
||||
[super dealloc];
|
||||
DEALLOC
|
||||
}
|
||||
|
||||
- (id) initWithName: (NSString*)name data: (NSData*)data
|
||||
|
@ -3062,11 +3055,6 @@ getTypeInfo(NSTimeInterval since, GSTimeZone *zone)
|
|||
return timeZoneName;
|
||||
}
|
||||
|
||||
- (NSDate *) nextDaylightSavingTimeTransitionAfterDate: (NSDate *)aDate
|
||||
{
|
||||
return [super nextDaylightSavingTimeTransitionAfterDate: aDate];
|
||||
}
|
||||
|
||||
- (NSInteger) secondsFromGMTForDate: (NSDate*)aDate
|
||||
{
|
||||
TypeInfo type = getTypeInfo([aDate timeIntervalSince1970], self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue