Moved variable declaration to work with older compilers.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23320 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2006-08-21 12:09:38 +00:00
parent 3c5f004f90
commit 48f42d5793
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2006-08-21 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSBrowser.m (-encodeWithCoder:): Moved variable
declaration to the beginning of the block to not break old
compilers deliberately.
2006-08-20 12:14-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSApplication.m: Remove keys from initWithCoder: and

View file

@ -2503,6 +2503,8 @@ static NSTextFieldCell *titleCell;
[super encodeWithCoder: aCoder];
if([aCoder allowsKeyedCoding])
{
long flags = 0;
//
// NOTE: The browserview under GS uses an NSMatrix subview, the one under
// Cocoa does not. This will cause IB to issue an "inconsistency" alert
@ -2512,7 +2514,6 @@ static NSTextFieldCell *titleCell;
[aCoder encodeObject: [self _getTitleOfColumn: 0] forKey: @"NSFirstColumnTitle"];
[aCoder encodeObject: _pathSeparator forKey: @"NSPathSeparator"];
long flags = 0;
flags |= [self hasHorizontalScroller] ? 0x10000 : 0;
flags |= ([self allowsEmptySelection] == NO) ? 0x20000 : 0;
flags |= [self sendsActionOnArrowKeys] ? 0x40000 : 0;