Fix more unsigned int / int cases that should be NS[U]Integer

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31354 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2010-09-16 02:51:30 +00:00
parent a1cd16df1d
commit 03620ee011
5 changed files with 14 additions and 6 deletions

View file

@ -1,3 +1,11 @@
2010-09-15 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSParagraphStyle.m:
* Source/NSPopUpButton.m:
* Source/NSMenuItemCell.m:
* Source/NSFont.m: Fix more unsigned int / ints that should
be NSUInteger/NSInteger
2010-09-15 Eric Wasylishen <ewasylishen@gmail.com>
* Source/GSTextStorage.m: Fix an unisgned->NSUInteger

View file

@ -79,7 +79,7 @@ globalFontMap.
}
@end
@implementation GSFontMapKey
-(unsigned int) hash
-(NSUInteger) hash
{
return hash;
}
@ -935,7 +935,7 @@ static void setNSFont(NSString *key, NSFont *font)
return YES;
}
- (unsigned) hash
- (NSUInteger) hash
{
int i, sum;
sum = 0;

View file

@ -160,7 +160,7 @@
return _menuItem;
}
- (int) tag
- (NSInteger) tag
{
return [[self menuItem] tag];
}

View file

@ -139,7 +139,7 @@
return NSOrderedSame;
}
- (unsigned) hash
- (NSUInteger) hash
{
unsigned val = (unsigned)_location;
@ -601,7 +601,7 @@ static NSParagraphStyle *defaultStyle = nil;
return [_tabStops isEqualToArray: other->_tabStops];
}
- (unsigned int) hash
- (NSUInteger) hash
{
return _alignment + _lineBreakMode;
}

View file

@ -257,7 +257,7 @@ this to return nil to indicate that we have no context menu.
/**<p>Returns the tag of the selected item</p>
<p>See Also: [NSPopUpButtonCell-indexOfSelectedItem]</p>
*/
- (int) selectedTag
- (NSInteger) selectedTag
{
return [[_cell selectedItem] tag];
}