summaryrefslogtreecommitdiff
path: root/UICaboodle
diff options
context:
space:
mode:
authorGrant Paul <chpwn@chpwn.com>2010-10-06 20:34:07 -0700
committerGrant Paul <chpwn@chpwn.com>2010-10-06 20:42:47 -0700
commit96f3833bfcfa8c5cb8bc2a6980bcaadc2b850931 (patch)
tree58885cfe3995b70c88f380ae4d37defa23608026 /UICaboodle
parent02012733967832de2f331cd42d73f53724d66a69 (diff)
Let UICaboodle build with clang++ as well as g++. Cydia needs additional changes.
Diffstat (limited to 'UICaboodle')
-rw-r--r--UICaboodle/BrowserView.h2
-rw-r--r--UICaboodle/BrowserView.mm8
-rw-r--r--UICaboodle/RVBook.mm2
3 files changed, 6 insertions, 6 deletions
diff --git a/UICaboodle/BrowserView.h b/UICaboodle/BrowserView.h
index d774309..c61fef4 100644
--- a/UICaboodle/BrowserView.h
+++ b/UICaboodle/BrowserView.h
@@ -25,7 +25,7 @@
@class IndirectDelegate;
@interface WebScriptObject (UICaboodle)
-- (unsigned) count;
+- (NSUInteger) count;
- (id) objectAtIndex:(unsigned)index;
@end
diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm
index 9b0c93d..ff39763 100644
--- a/UICaboodle/BrowserView.mm
+++ b/UICaboodle/BrowserView.mm
@@ -161,7 +161,7 @@ static Class $UIWebBrowserView;
@implementation WebScriptObject (UICaboodle)
-- (unsigned) count {
+- (NSUInteger) count {
id length([self valueForKey:@"length"]);
if ([length respondsToSelector:@selector(intValue)])
return [length intValue];
@@ -759,10 +759,10 @@ static Class $UIWebBrowserView;
goto ignore;
}
- int store(_not(int));
+ NSInteger store(_not(NSInteger));
if (NSURL *itms = [url itmsURL:&store]) {
#if LogBrowser
- NSLog(@"itms#%@#%u#%@", url, store, itms);
+ NSLog(@"itms#%@#%d#%@", url, (int) store, itms);
#endif
if (capability != nil && (
@@ -1144,7 +1144,7 @@ static Class $UIWebBrowserView;
if ([frame parentFrame] == nil) {
if (DOMDocument *document = [frame DOMDocument])
if (DOMNodeList<NSFastEnumeration> *bodies = [document getElementsByTagName:@"body"])
- for (DOMHTMLBodyElement *body in bodies) {
+ for (DOMHTMLBodyElement *body in (id) bodies) {
DOMCSSStyleDeclaration *style([document getComputedStyle:body pseudoElement:nil]);
bool colored(false);
diff --git a/UICaboodle/RVBook.mm b/UICaboodle/RVBook.mm
index beff51c..7fbbd5c 100644
--- a/UICaboodle/RVBook.mm
+++ b/UICaboodle/RVBook.mm
@@ -14,7 +14,7 @@
@implementation UCNavigationController
-- (void) setHook:(id)hook {
+- (void) setHook:(id<HookProtocol>)hook {
hook_ = hook;
}
- (void) dismissModalViewControllerAnimated:(BOOL)animated {