Remove uses of the deprecated 'casts as lvalues' gcc extension.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18535 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2004-02-04 00:27:49 +00:00
parent edc0a6f614
commit 2be0f07f80
2 changed files with 10 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2004-02-04 01:24 Alexander Malmberg <alexander@malmberg.org>
* Source/NSView.m: Remove uses of the deprecated "casts as lvalues"
gcc extension.
2004-02-03 23:38 Alexander Malmberg <alexander@malmberg.org>
* Source/NSBitmapImageRep.m (+imageRepsWithFile:,

View file

@ -362,7 +362,7 @@ GSSetDragTypes(NSView* obj, NSArray *types)
}
GSIArrayClear(pKV(self));
NSZoneFree(NSDefaultMallocZone(), pKV(self));
pKV(self) = 0;
_previousKeyView = 0;
}
/*
@ -394,7 +394,7 @@ GSSetDragTypes(NSView* obj, NSArray *types)
}
GSIArrayClear(nKV(self));
NSZoneFree(NSDefaultMallocZone(), nKV(self));
nKV(self) = 0;
_nextKeyView = 0;
}
RELEASE(_matrixToWindow);
@ -2540,7 +2540,7 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
count = [_sub_views count];
if (count > 0)
{
NSView* array[count];
NSView *array[count];
[_sub_views getObjects: array];
@ -2746,7 +2746,7 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
* Create array and ensure that it has a nil item at index 0 ...
* so we always have room for the pointer to the next view.
*/
nKV(self) = NSZoneMalloc(NSDefaultMallocZone(), sizeof(GSIArray_t));
_nextKeyView = NSZoneMalloc(NSDefaultMallocZone(), sizeof(GSIArray_t));
GSIArrayInitWithZoneAndCapacity(nKV(self), NSDefaultMallocZone(), 1);
GSIArrayAddItem(nKV(self), (GSIArrayItem)nil);
}
@ -2766,7 +2766,7 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
* Create array and ensure that it has a nil item at index 0 ...
* so we always have room for the pointer to the previous view.
*/
pKV(aView) = NSZoneMalloc(NSDefaultMallocZone(), sizeof(GSIArray_t));
aView->_previousKeyView = NSZoneMalloc(NSDefaultMallocZone(), sizeof(GSIArray_t));
GSIArrayInitWithZoneAndCapacity(pKV(aView), NSDefaultMallocZone(), 1);
GSIArrayAddItem(pKV(aView), (GSIArrayItem)nil);
}