* Framework/PCProjectInspector.m

* Modules/Editors/ProjectCenter/SyntaxDefinition.m
        * Modules/Editors/ProjectCenter/SyntaxHighlighter.m
        * Modules/Editors/ProjectCenter/TextPattern.m
        * Modules/Preferences/EditorFSC/PCEditorFSCPrefs.m
          some more (unsigned) int -> NS(U)Integer transitions
          and some shutup of clang compiler warnings

OK Fred



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@36107 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Sebastian Reitenbach 2013-02-10 18:30:25 +00:00
parent b97e7068dc
commit 8562d733c5
6 changed files with 24 additions and 15 deletions

View file

@ -1,3 +1,12 @@
2013-02-10: Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
* Framework/PCProjectInspector.m
* Modules/Editors/ProjectCenter/SyntaxDefinition.m
* Modules/Editors/ProjectCenter/SyntaxHighlighter.m
* Modules/Editors/ProjectCenter/TextPattern.m
* Modules/Preferences/EditorFSC/PCEditorFSCPrefs.m
some more (unsigned) int -> NS(U)Integer transitions
and some shutup of clang compiler warnings
2013-02-09 Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
* Framework/PCFileCreator.m
* Framework/PCMakefileFactory.m

View file

@ -1044,7 +1044,7 @@
// ==== NSTableViews
// ============================================================================
- (int)numberOfRowsInTableView:(NSTableView *)aTableView
- (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView
{
if (searchOrderList != nil && aTableView == searchOrderList)
{
@ -1064,7 +1064,7 @@
- (id) tableView:(NSTableView *)aTableView
objectValueForTableColumn:(NSTableColumn *)aTableColumn
row:(int)rowIndex
row:(NSInteger)rowIndex
{
if (searchOrderList != nil && aTableView == searchOrderList)
{
@ -1085,11 +1085,11 @@
- (void) tableView:(NSTableView *)aTableView
setObjectValue:anObject
forTableColumn:(NSTableColumn *)aTableColumn
row:(int)rowIndex
row:(NSInteger)rowIndex
{
if (authorsList != nil && aTableView == authorsList)
{
if([authorsItems count] <= 0)
if([authorsItems count] == 0)
{
return;
}
@ -1104,7 +1104,7 @@
- (void) tableView: (NSTableView*)aTableView
willDisplayCell: (id)aCell
forTableColumn: (NSTableColumn*)aTableColumn
row: (int)rowIndex
row: (NSInteger)rowIndex
{
[(NSTextFieldCell *)aCell setScrollable:YES];
}

View file

@ -249,7 +249,7 @@ static NSMutableDictionary * syntaxDefinitions = nil;
{
if ([self init])
{
unsigned int i, n;
NSUInteger i, n;
NSMutableArray * contextGraphicsTmp = [NSMutableArray array],
* keywordGraphicsTmp = [NSMutableArray array];
@ -258,7 +258,7 @@ static NSMutableDictionary * syntaxDefinitions = nil;
// compile the syntax definition
for (i = 0, n = [contexts count]; i < n; i++)
{
unsigned int j, keywordCount, skipCount;
NSUInteger j, keywordCount, skipCount;
NSDictionary * context = [contexts objectAtIndex: i];
NSArray * ctxtKeywords, * skips;
NSMutableArray * contextKeywordsGraphicsTmp;
@ -268,8 +268,8 @@ static NSMutableDictionary * syntaxDefinitions = nil;
[context objectForKey: @"Ending"] == nil) &&
i > 0)
{
NSLog(_(@"Syntax compilation error: context %i missing "
@"beginning or ending symbol."));
NSLog(@"Syntax compilation error: context %" PRIuPTR " missing "
@"beginning or ending symbol.", i);
[self release];
return nil;

View file

@ -297,7 +297,6 @@ LocateString(NSString * str,
for (;i < r.length; i++)
{
unichar c = string[i];
unsigned int j;
if (c < numSkipChars && skipChars[c])
{
@ -797,7 +796,6 @@ LocateString(NSString * str,
// need to fixup contexts?
if (NSMaxRange(r) > lastProcessedContextIndex)
{
unsigned int prevContext;
NSRange fixupRange;
fixupRange = NSMakeRange(lastProcessedContextIndex,

View file

@ -257,6 +257,8 @@ ParseTextPatternItem (NSString *string, unsigned int *index)
return newItem;
}
#if 0
// not used
static void
DescribeTextPatternItem(TextPatternItem *item)
{
@ -292,7 +294,7 @@ DescribeTextPatternItem(TextPatternItem *item)
break;
}
}
#endif
TextPattern *
CompileTextPattern (NSString *string)

View file

@ -161,7 +161,7 @@
colorWithCalibratedWhite:[[colorComponents objectAtIndex:1] floatValue]
alpha:1.0];
}
else if ([colorSpaceName isEqualToString:@"RGB"]) // Treat as RGBColorSpace
else // Treat as RGBColorSpace
{
color = [NSColor
colorWithCalibratedRed:[[colorComponents objectAtIndex:1] floatValue]
@ -255,7 +255,7 @@
key = EditorLines;
val = [editorLinesField stringValue];
}
else if (sender == editorColumnsField)
else // editorColumnsField
{
key = EditorColumns;
val = [editorColumnsField stringValue];
@ -286,7 +286,7 @@
currentColor = currentBackgroundColor;
key = EditorBackgroundColor;
}
else if (sender == selectionColorWell)
else // selectionColorWell
{
NSLog(@"selectionColorWell");
color = [selectionColorWell color];