aboutsummaryrefslogtreecommitdiffstats
path: root/Source/GeneratePreviewForURL.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2011-03-04 00:38:30 +0000
committerrowanbeentje <rowan@beent.je>2011-03-04 00:38:30 +0000
commit994756398decf77738afb3c599d4cb9238c77cee (patch)
tree6fef724448931d438e553d98096a8f20cbf6751b /Source/GeneratePreviewForURL.m
parent6f983024a66ddb594eac5e4e808a8c3c51f6b6ff (diff)
downloadsequelpro-994756398decf77738afb3c599d4cb9238c77cee.tar.gz
sequelpro-994756398decf77738afb3c599d4cb9238c77cee.tar.bz2
sequelpro-994756398decf77738afb3c599d4cb9238c77cee.zip
- Fix more compiler warnings
Diffstat (limited to 'Source/GeneratePreviewForURL.m')
-rw-r--r--Source/GeneratePreviewForURL.m9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/GeneratePreviewForURL.m b/Source/GeneratePreviewForURL.m
index 91bd65e6..6c779859 100644
--- a/Source/GeneratePreviewForURL.m
+++ b/Source/GeneratePreviewForURL.m
@@ -30,6 +30,11 @@
#import "SPDataAdditions.h"
#import "SPEditorTokens.h"
+OSStatus GenerateThumbnailForURL(void *thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize);
+OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options);
+void CancelPreviewGeneration(void* thisInterface, QLPreviewRequestRef preview);
+
+
/* -----------------------------------------------------------------------------
Generate a preview for file
@@ -338,7 +343,7 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,
{
NSNumber *filesize = [fileAttributes objectForKey:NSFileSize];
- NSUInteger kMaxSQLFileSize = (0.7 * 1024 * 1024);
+ NSUInteger kMaxSQLFileSize = (0.7f * 1024 * 1024);
// compose the html and perform syntax highlighting
@@ -489,7 +494,7 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,
props = [[NSMutableDictionary alloc] initWithCapacity:6];
imgProps = [[NSMutableDictionary alloc] initWithCapacity:2];
- [props setObject:[NSNumber numberWithInt:previewHeight] forKey:(NSString *)kQLPreviewPropertyHeightKey];
+ [props setObject:[NSNumber numberWithInteger:previewHeight] forKey:(NSString *)kQLPreviewPropertyHeightKey];
[props setObject:[NSNumber numberWithInt:600] forKey:(NSString *)kQLPreviewPropertyWidthKey];
if(image) {