(fixes issue #457)

cleanup warnings
This commit is contained in:
Christopher Lloyd 2009-11-30 21:44:17 +00:00
parent d35dfd5dbf
commit 309746b175
8 changed files with 13 additions and 8 deletions

View File

@ -126,7 +126,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
-initWithFocusedViewRect:(NSRect)rect {
return [self initWithData:CGContextCaptureBitmap(NSCurrentGraphicsPort(), rect)];
return [self initWithData:(NSData *)CGContextCaptureBitmap(NSCurrentGraphicsPort(), rect)];
}
-initWithData:(NSData *)data {

View File

@ -216,7 +216,7 @@ static NSPrintOperation *_currentOperation=nil;
else if(_type==NSPrintOperationPDFInRect){
NSDictionary *auxiliaryInfo=[NSDictionary dictionaryWithObject:[[_view window] title] forKey:(NSString *)kCGPDFContextTitle];
CGDataConsumerRef consumer=CGDataConsumerCreateWithCFData(_mutableData);
CGDataConsumerRef consumer=CGDataConsumerCreateWithCFData((CFMutableDataRef)_mutableData);
context=CGPDFContextCreate(consumer,&_insideRect,(CFDictionaryRef)auxiliaryInfo);
[(id)context autorelease];

View File

@ -9,7 +9,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
#import "O2DataConsumer.h"
CGDataConsumerRef CGDataConsumerCreateWithCFData(CFMutableDataRef data) {
return O2DataConsumerCreateWithCFData(data);
return O2DataConsumerCreateWithCFData((NSMutableData *)data);
}
void CGDataConsumerRelease(CGDataConsumerRef self){

View File

@ -18,7 +18,7 @@ void CGDataProviderRelease(CGDataProviderRef provider) {
}
CGDataProviderRef CGDataProviderCreateWithCFData(CFDataRef data) {
return O2DataProviderCreateWithCFData(data);
return O2DataProviderCreateWithCFData((NSData *)data);
}
COREGRAPHICS_EXPORT CGDataProviderRef CGDataProviderCreateWithData(void *info,const void *data,size_t size,CGDataProviderReleaseDataCallback releaseCallback) {

View File

@ -36,10 +36,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
-init {
return [self initWithObjects:NULL forKeys:NULL count:0];
}
-initWithObjects:(id *)objects forKeys:(id *)keys count:(NSUInteger)count {
NSInvalidAbstractInvocation();
return nil;

View File

@ -26,6 +26,10 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
return NSAutorelease(NSEnumerator_dictionaryKeysNew(_table));
}
-init {
return [self initWithObjects:NULL forKeys:NULL count:0];
}
-initWithObjects:(id *)objects forKeys:(id *)keys count:(NSUInteger)count {
NSInteger i;

View File

@ -50,6 +50,10 @@ static inline void setObjectForKey(NSMutableDictionary_mapTable *self,id object,
NSMapRemove(_table,key);
}
-init {
return [self initWithObjects:NULL forKeys:NULL count:0];
}
-initWithCapacity:(NSUInteger)capacity {
_table=NSCreateMapTableWithZone(NSObjectMapKeyCallBacks,
NSObjectMapValueCallBacks,capacity,NULL);

View File

@ -18,6 +18,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
-(BOOL)isRunning;
-(void)receiveAllData;
-(NSURLResponse *)response;
-(NSError *)error;
-(NSMutableData *)data;