removed c99isms

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30175 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rmottola 2010-04-16 18:58:26 +00:00
parent 9da9dae16e
commit a4fb383863
3 changed files with 33 additions and 13 deletions

View file

@ -393,6 +393,7 @@ static void initSystemExtensionsColors(void)
NSString *identifier = [item itemIdentifier];
NSToolbar *toolbar = [self toolbar];
NSArray *allowedItemIdentifiers = [[toolbar delegate] toolbarAllowedItemIdentifiers: toolbar];
int newIndex;
// don't accept any dragging if the customization palette isn't running for this toolbar
if (![toolbar customizationPaletteIsRunning] || ![allowedItemIdentifiers containsObject: identifier])
@ -424,7 +425,7 @@ static void initSystemExtensionsColors(void)
draggedItemIndex = NSNotFound;
}
int newIndex = [self _insertionIndexAtPoint: [info draggingLocation]];
newIndex = [self _insertionIndexAtPoint: [info draggingLocation]];
if (draggedItemIndex != NSNotFound)
{