From 2e61ea63b4f5fea88cfd60e85ba54c4604bc6947 Mon Sep 17 00:00:00 2001 From: alexm Date: Wed, 4 Feb 2004 00:27:49 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ Source/NSView.m | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index ac0bc9319..ddf652939 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-02-04 01:24 Alexander Malmberg + + * Source/NSView.m: Remove uses of the deprecated "casts as lvalues" + gcc extension. + 2004-02-03 23:38 Alexander Malmberg * Source/NSBitmapImageRep.m (+imageRepsWithFile:, diff --git a/Source/NSView.m b/Source/NSView.m index 96ea63c12..65dfc5fef 100644 --- a/Source/NSView.m +++ b/Source/NSView.m @@ -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); }