Remove a few compiler warnings.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31587 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2010-11-03 20:26:30 +00:00
parent 54f345dd83
commit bc53479544
5 changed files with 23 additions and 13 deletions

View file

@ -157,12 +157,12 @@ first. Remaining cases, highest priority first:
@implementation NSLayoutManager (layout)
-(NSPoint) locationForGlyphAtIndex: (unsigned int)glyphIndex
-(NSPoint) locationForGlyphAtIndex: (NSUInteger)glyphIndex
{
NSRange r;
NSPoint p;
NSFont *f;
unsigned int i;
NSUInteger i;
r = [self rangeOfNominallySpacedGlyphsContainingIndex: glyphIndex
startLocation: &p];
@ -213,9 +213,9 @@ container? necessary? */
-(NSRect *) rectArrayForGlyphRange: (NSRange)glyphRange
withinSelectedGlyphRange: (NSRange)selGlyphRange
inTextContainer: (NSTextContainer *)container
rectCount: (unsigned int *)rectCount
rectCount: (NSUInteger *)rectCount
{
unsigned int last;
NSUInteger last;
int i;
textcontainer_t *tc;
linefrag_t *lf;
@ -223,7 +223,6 @@ container? necessary? */
float x0, x1;
NSRect r;
*rectCount = 0;
for (tc = textcontainers, i = 0; i < num_textcontainers; i++, tc++)
@ -320,7 +319,7 @@ container? necessary? */
The end index is inside the line frag, so we need to find the
exact end location.
*/
unsigned int i;
NSUInteger i;
int j;
linefrag_point_t *lp;
glyph_run_t *r;
@ -400,7 +399,7 @@ container? necessary? */
-(NSRect *) rectArrayForCharacterRange: (NSRange)charRange
withinSelectedCharacterRange: (NSRange)selCharRange
inTextContainer: (NSTextContainer *)container
rectCount: (unsigned int *)rectCount
rectCount: (NSUInteger *)rectCount
{
NSRange r1, r2;
@ -422,7 +421,7 @@ container? necessary? */
{
NSRect *r;
NSRect result;
unsigned int i, c;
NSUInteger i, c;
/* TODO: This isn't correct. Need to handle glyphs that extend outside the
line frag rect. */
@ -1161,7 +1160,7 @@ container
unsigned int glyph_pos, char_pos, first_char_pos;
int i, j;
NSRect *rects;
unsigned int count;
NSUInteger count;
NSColor *color, *last_color;
NSGraphicsContext *ctxt = GSCurrentContext();