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:
fredkiefer 2008-10-17 15:41:00 +00:00
parent ad18392d69
commit 9337a42f98
2 changed files with 7 additions and 4 deletions

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,