diff --git a/ChangeLog b/ChangeLog index 771784ae9..add3c717d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-03-28 Riccardo Mottola + + * Source/NSSearchFieldCell.m: + Remove c99-ism + 2011-03-25 German Arias * Panels/Spanish.lproj/GSDataLinkPanel.gorm: diff --git a/Source/NSSearchFieldCell.m b/Source/NSSearchFieldCell.m index 4b8c2f39d..51ba56573 100644 --- a/Source/NSSearchFieldCell.m +++ b/Source/NSSearchFieldCell.m @@ -402,6 +402,7 @@ NSRect rect; NSPoint thePoint; NSPoint location = [event locationInWindow]; + NSText *currentEditor; thePoint = [controlView convertPoint: location fromView: nil]; @@ -424,9 +425,9 @@ untilMouseUp: untilMouseUp]; } - NSText *currentEditor = ([controlView isKindOfClass:[NSControl class]] - ? [(NSControl *)controlView currentEditor] - : nil); + currentEditor = ([controlView isKindOfClass:[NSControl class]] + ? [(NSControl *)controlView currentEditor] + : nil); if (currentEditor) { [currentEditor mouseDown: event];