A few consistency fixes for loop iterator varaibles (Patch by Marcus Müller)

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@37644 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Niels Grewe 2014-01-29 18:50:23 +00:00
parent 6afb2cec7b
commit f6afbfd0b2
4 changed files with 15 additions and 4 deletions

View File

@ -1,3 +1,11 @@
2014-01-19 Niels Grewe <niels.grewe@halbordnung.de>
* Source/DKInterface.m
* Source/DKBoxingUtils.m
* Source/DKPort.m:
A few consistency fixes for loop iterator varaibles
(Patch by Marcus Müller)
2014-01-29 Niels Grewe <niels.grewe@halbordnung.de>
* Source/DKBoxingUtils.m

View File

@ -557,7 +557,8 @@ DKMethodNameFromSelectorString(const char* selString)
{
[selName getCharacters: heapChars range: NSMakeRange(0,length)];
for (int i = 0; i < (length - 1); i++)
NSUInteger i;
for (i = 0; i < (length - 1); i++)
{
if(':' == heapChars[i])
{

View File

@ -107,8 +107,9 @@
NSArray *messages = [[NSUserDefaults standardUserDefaults] arrayForKey:
@"GSPermittedMessages"];
// Iterate over the methods an generate DKMethods for them:
for (int i = 0; i < methodCount; i++)
NSUInteger i;
// Iterate over the methods and generate DKMethods for them:
for (i = 0; i < methodCount; i++)
{
SEL selector = 0;
NSString *selName = nil;

View File

@ -755,7 +755,8 @@ static DKPort *sharedSystemPort;
NSUInteger count = [nodes count];
id<DKExportableObjectPathNode> lastNode = nil;
id<DKExportableObjectPathNode> thisNode = nil;
for (NSUInteger i = 0; i < count; i++)
NSUInteger i;
for (i = 0; i < count; i++)
{
id<DKExportableObjectPathNode> proxy = nil;
NSString *component = [nodes objectAtIndex: i];