mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Minor bugfixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13598 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d6a5023609
commit
a5fa6397fa
3 changed files with 9 additions and 26 deletions
|
@ -1,3 +1,11 @@
|
|||
2002-05-06 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSMapTable.m: Delete line teft over by accident ... could
|
||||
cause crach if passes nul table. Thanks to Lars Sonchocky-Helldorf
|
||||
* Source/NSCalendarDate.m: ([-initWithString:calendarFormat:]) don't
|
||||
supply current date information as default ... for compatibility
|
||||
with MacOS-X use zero date instead. Thanks to lcampbell.
|
||||
|
||||
2002-05-04 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Testing/nsbundle.m: Update to work without installing bundle.
|
||||
|
|
|
@ -893,31 +893,6 @@ static inline int getDigits(const char *from, char *to, int limit)
|
|||
had |= hadD;
|
||||
}
|
||||
|
||||
/*
|
||||
* Use current date/time information for anything missing.
|
||||
*/
|
||||
if ((had & (hadY|hadM|hadD|hadh|hadm|hads))
|
||||
!= (hadY|hadM|hadD|hadh|hadm|hads))
|
||||
{
|
||||
NSCalendarDate *now = [NSCalendarDate date];
|
||||
int Y, M, D, h, m, s;
|
||||
|
||||
[now setTimeZone: tz];
|
||||
[now getYear: &Y month: &M day: &D hour: &h minute: &m second: &s];
|
||||
if ((had & hadY) == 0)
|
||||
year = Y;
|
||||
if ((had & hadM) == 0)
|
||||
month = M;
|
||||
if ((had & hadD) == 0)
|
||||
day = D;
|
||||
if ((had & hadh) == 0)
|
||||
hour = h;
|
||||
if ((had & hadm) == 0)
|
||||
min = m;
|
||||
if ((had & hads) == 0)
|
||||
sec = s;
|
||||
}
|
||||
|
||||
return [self initWithYear: year
|
||||
month: month
|
||||
day: day
|
||||
|
|
|
@ -338,7 +338,7 @@ NSFreeMapTable(NSMapTable *table)
|
|||
void *
|
||||
NSMapGet(NSMapTable *table, const void *key)
|
||||
{
|
||||
GSIMapNode n = GSIMapNodeForKey((GSIMapTable)table, (GSIMapKey)key);
|
||||
GSIMapNode n;
|
||||
|
||||
if (table == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue