summaryrefslogtreecommitdiff
path: root/platform/ios
diff options
context:
space:
mode:
authorJoseph Heenan <joseph@emobix.co.uk>2015-12-18 20:48:48 +0000
committerJoseph Heenan <joseph@emobix.co.uk>2015-12-18 21:08:18 +0000
commitf48a76c33db71891126211539fb3f167e5f96d71 (patch)
tree03cc3b7820f8fec7716c044cc4725bb6238f81f6 /platform/ios
parent39389bba83b4b1d64c8c540cb7c7edbe09ea4009 (diff)
downloadmupdf-f48a76c33db71891126211539fb3f167e5f96d71.tar.xz
iOS: Fix two warnings in MuPrintPageRenderer with latest Xcode
MuPrintPageRenderer.h:2:9: error: 'MuDocRef.h' file not found with <angled> include; use "quotes" instead MuPrintPageRenderer.m:35:16: warning: if statement has empty body [-Wempty-body] MuPrintPageRenderer.m:35:16: note: put the semicolon on a separate line to silence this warning
Diffstat (limited to 'platform/ios')
-rw-r--r--platform/ios/Classes/MuPrintPageRenderer.h3
-rw-r--r--platform/ios/Classes/MuPrintPageRenderer.m4
2 files changed, 5 insertions, 2 deletions
diff --git a/platform/ios/Classes/MuPrintPageRenderer.h b/platform/ios/Classes/MuPrintPageRenderer.h
index f043e0b1..8a48c6e3 100644
--- a/platform/ios/Classes/MuPrintPageRenderer.h
+++ b/platform/ios/Classes/MuPrintPageRenderer.h
@@ -1,5 +1,6 @@
#import <UIKit/UIKit.h>
-#import <MuDocRef.h>
+
+#import "MuDocRef.h"
@interface MuPrintPageRenderer : UIPrintPageRenderer
diff --git a/platform/ios/Classes/MuPrintPageRenderer.m b/platform/ios/Classes/MuPrintPageRenderer.m
index a0ec7cf8..b2544825 100644
--- a/platform/ios/Classes/MuPrintPageRenderer.m
+++ b/platform/ios/Classes/MuPrintPageRenderer.m
@@ -32,7 +32,9 @@ const int MaxStripPixels = 1024*1024;
{
npages = fz_count_pages(ctx, docRef->doc);
}
- fz_catch(ctx);
+ fz_catch(ctx)
+ {
+ }
});
return npages;
}