Move the initialization of windowmaps to initialize.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26928 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2008-10-17 15:41:00 +00:00
parent 29373b4707
commit e362e578e9
2 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2008-10-17 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSWindow.m (+initialize, -startBackendWindow:): Move the
initialization of windowmaps to initialize.
2008-09-17 18:15-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* Source/GSInfoPanel.m: Minor correction in initWithDictionary to

View file

@ -631,6 +631,8 @@ static NSNotificationCenter *nc = nil;
responderClass = [NSResponder class];
viewClass = [NSView class];
autosaveNames = [NSMutableSet new];
windowmaps = NSCreateMapTable(NSIntMapKeyCallBacks,
NSNonRetainedObjectMapValueCallBacks, 20);
nc = [NSNotificationCenter defaultCenter];
}
}
@ -812,10 +814,6 @@ many times.
{
NSDictionary *info;
if (!windowmaps)
windowmaps = NSCreateMapTable(NSIntMapKeyCallBacks,
NSNonRetainedObjectMapValueCallBacks, 20);
NSMapInsert(windowmaps, (void*)(intptr_t)_windowNum, self);
// Make sure not to create an autoreleased object,