Fix build with gcc.

Sorry!



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31553 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Chisnall 2010-10-22 21:23:29 +00:00
parent 46d64c5822
commit 71783836f1
2 changed files with 4 additions and 3 deletions

View file

@ -406,7 +406,8 @@ static BOOL restoreMouseMoved;
{
NSUInteger idx = 0;
NSMutableIndexSet *indexes = [NSMutableIndexSet new];
FOR_IN(GSTrackingRect*, rect, ((NSViewPtr)view)->_tracking_rects)
id tracking_rects = ((NSViewPtr)view)->_tracking_rects;
FOR_IN(GSTrackingRect*, rect, tracking_rects)
if ((rect->owner == self) && NSContainsRect(aRect, rect->rectangle))
{
RELEASE((GSTTProvider*)rect->user_data);
@ -415,7 +416,7 @@ static BOOL restoreMouseMoved;
[rect invalidate];
}
idx++;
END_FOR_IN(((NSViewPtr)view)->_tracking_rects)
END_FOR_IN(tracking_rects)
[((NSViewPtr)view)->_tracking_rects removeObjectsAtIndexes: indexes];
if ([((NSViewPtr)view)->_tracking_rects count] == 0)
{

View file

@ -3903,7 +3903,7 @@ Figure out how the additional layout stuff is supposed to work.
atIndex: startIndex
effectiveRange: NULL];
}
END_FOR_IN(((NSViewPtr)view)->_tracking_rects)
END_FOR_IN(_tracking_rects)
return nil;
}