Commits

Tuukka Norri  committed 99d05ae

Replaced even more unsigned ints with NSUIntegers

  • Participants
  • Parent commits ba289c7

Comments (0)

Files changed (8)

File Sources/BXDatabaseContext.m

 - (NSArray *) faultsWithIDs: (NSArray *) anArray
 {
     NSMutableArray* rval = nil;
-    unsigned int count = [anArray count];
+    NSUInteger count = [anArray count];
     if (0 < count)
     {
         rval = [NSMutableArray arrayWithCapacity: count];
 		
 - (void) lockedObjectsInDatabase: (NSArray *) objectIDs status: (enum BXObjectLockStatus) status
 {
-    unsigned int count = [objectIDs count];
+    NSUInteger count = [objectIDs count];
     if (0 < count)
     {
         NSMutableArray* foundObjects = [NSMutableArray arrayWithCapacity: count];
 
 - (void) unlockedObjectsInDatabase: (NSArray *) objectIDs
 {
-    unsigned int count = [objectIDs count];
+    NSUInteger count = [objectIDs count];
     if (0 < count)
     {
         NSArray* foundObjects = [self registeredObjectsWithIDs: objectIDs];

File Sources/BXDatabaseObject.m

 {
     id rval = nil;
 	NSArray* components = BXKeyPathComponents (keyPath);
-    unsigned int count = [components count];
+    NSUInteger count = [components count];
     BXEntityDescription* entity = [mObjectID entity];
     
     if (1 == count)

File Sources/BXDatabaseObjectID.m

     NSString* path = [anURI path];
     
     NSArray* pathComponents = [path pathComponents];
-    unsigned int count = [pathComponents count];
+    NSUInteger count = [pathComponents count];
     NSString* tableName = [pathComponents objectAtIndex: count - 1];
     NSString* schemaName = [pathComponents objectAtIndex: count - 2];
     //FIXME: object address and context address should be compared.

File Sources/BXSetHelperTableRelationProxy.m

 
 	for (int i = 0; i < count; i++)
 	{
-		unsigned int count = [filtered [i] count];
+		NSUInteger count = [filtered [i] count];
 		if (0 < count)
 		{
 			BXEnumerate (currentObject, e, [filtered [i] objectEnumerator])

File Sources/NSComparisonPredicate+BXPGAdditions.m

 	if (! (lval && rval))
 		goto end;
 	
-	unsigned int comparisonOptions = [self options];
+	NSUInteger comparisonOptions = [self options];
 	if (comparisonOptions & ~NSCaseInsensitivePredicateOption)
 		goto end;
 

File Sources/PGTSAbstractDescription.h

 @interface PGTSAbstractDescription : NSObject <NSCopying>
 {
     NSString* mName;
-    unsigned int mHash;
+    NSUInteger mHash;
 }
 + (BOOL) accessInstanceVariablesDirectly;
 - (NSString *) name;

File Sources/PGTSConnection.mm

 		
 		if ([queryDescription finished])
 		{
-			unsigned int count = [mQueue count];
+			NSUInteger count = [mQueue count];
 			if (count)
 			{
 				if ([mQueue objectAtIndex: 0] == queryDescription)

File Sources/PGTSFoundationObjects.m

 }
 
 static inline void
-AppendBytes (IMP impl, NSMutableData* target, const void* bytes, unsigned int length)
+AppendBytes (IMP impl, NSMutableData* target, const void* bytes, NSUInteger length)
 {
-	(void)(void (*)(id, SEL, const void*, unsigned int)) impl (target, @selector (appendBytes:length:), bytes, length);
+	(void)(void (*)(id, SEL, const void*, NSUInteger)) impl (target, @selector (appendBytes:length:), bytes, length);
 }
 
 static inline void